Big Data and Hadoop Training @$80 or Rs. 6,000 only - valid till Oct 17th Apply Now!

Mysql last day of month

Ads
 

Mysql last day of month

The Tutorial illustrate an example from 'Mysql Last Day of Month'. To understand and grasp the example we run LAST_DAY(now( )) that return the last day of the month.

The Tutorial illustrate an example from 'Mysql Last Day of Month'. To understand and grasp the example we run LAST_DAY(now( )) that return the last day of the month.

Mysql last day of month

     

The Tutorial illustrate an example from 'Mysql Last Day of Month'. To  understand and grasp the example we run LAST_DAY(now( )) that return the last day of the month.

LAST_DAY(now( )) : The Query return the last day of the current month a s fieldname Last Day of Month.

 

 

 

 

Query:

mysql> SELECT DAY(LAST_DAY(now())as LastDayOfMonth;

Output:-

+----------------+
| LastDayOfMonth |
+----------------+
|             31 |
+----------------+
1 row in set (0.00 sec)

 

 

Ads

Ads