Mega Code Archive

 
Categories / MySQL Tutorial / Date Time Functions
 

DATE_SUB(curdate(), INTERVAL 1 MINUTE)

mysql> mysql> select DATE_SUB(curdate(), INTERVAL 1 MINUTE); +----------------------------------------+ | DATE_SUB(curdate(), INTERVAL 1 MINUTE) | +----------------------------------------+ | 2007-07-21 23:59:00                    | +----------------------------------------+ 1 row in set (0.00 sec) mysql>