SELECT TIME(NOW()); -- 15:23:07 SELECT CURTIME(NOW());-- 15:23:07 SELECT ABS(-4); -- 4 SELECT 5 MOD 3; -- 2 SELECT CURDATE(); -- 2014-08-25 SELECT ADDDATE(CURDATE(), 1); -- 2014-08-26 SELECT DATE_ADD(CURDATE(),INTERVAL 1 DAY); -- 2014-08-26 SELECT DATEDIFF(‘2014-08-25‘, ‘2014-08-20‘); -- 5 SELECT DATE_FORMAT(NOW(), ‘%Y%m%d%H%i%s‘); -- 20140825152912
时间: 2024-10-16 19:57:48