
mysql 数据库取前后几秒 几分钟 几小时 几天的语句
取当前时间: select current_timestamp; 输出:2016-06-16 16:12:52 select now(); 输出:2016-06-16 16:12:52 取当前时间的前一分钟: select SUBDATE(...

取当前时间: select current_timestamp; 输出:2016-06-16 16:12:52 select now(); 输出:2016-06-16 16:12:52 取当前时间的前一分钟: select SUBDATE(...