SELECT NOW( ), NOW( ) - INTERVAL 24 HOUR; : NOW « Date Time « SQL / MySQL






SELECT NOW( ), NOW( ) - INTERVAL 24 HOUR;

    
mysql>
mysql> SELECT NOW( ), NOW( ) - INTERVAL 24 HOUR;
+---------------------+---------------------------+
| NOW( )              | NOW( ) - INTERVAL 24 HOUR |
+---------------------+---------------------------+
| 2011-10-03 13:05:47 | 2011-10-02 13:05:47       |
+---------------------+---------------------------+
1 row in set (0.00 sec)

   
    
    
    
  








Related examples in the same category

1.Get the current full date object, current date nd time