Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Sql Sql-functions Mysql last day of month

Related Tutorials


 
 

Share on Google+Share on Google+

Mysql last day of month

Advertisement
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)

 

 

Advertisement

If you enjoyed this post then why not add us on Google+? Add us to your Circles



Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: January 16, 2009

Related Tutorials

Discuss: Mysql last day of month  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:0
DMCA.com