Extract the day of the month out of a value: DAY() : Day « Date Time « SQL / MySQL






Extract the day of the month out of a value: DAY()

   
mysql>
mysql>
mysql> SELECT DAY('2004-12-31 23:59:59');
+----------------------------+
| DAY('2004-12-31 23:59:59') |
+----------------------------+
|                         31 |
+----------------------------+
1 row in set (0.00 sec)

   
    
    
  








Related examples in the same category

1.Get day of month
2.Use DAYOFMONTH in a where clause