Mega Code Archive

 
Categories / MySQL Tutorial / Date Time Functions
 

SELECT DATE_SUB(1998-01-01 00

mysql> mysql> SELECT DATE_SUB('1998-01-01 00:00:00', '1 1:1:1' DAY_SECOND); ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''1 1:1:1' DAY_SECOND)' at line 1 mysql>