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



Home Sql Sqldate Mysql Date Query

Related Tutorials


 
 

Share on Google+Share on Google+

Mysql Date Query

Advertisement
Mysql Date Query Date Query is used to return the current date, month and year of the table.

Mysql Date Query

     

Mysql Date Query Date Query is used to return the current date, month and year of the table.

Understand with Example

The Tutorial illustrate an example from 'Mysql Date Query'. To understand this example we use current_date query that return the current date in the table.

Current_Date :The Query is used to return you the current date, month and year as fieldname current_date  of the table in database.

 

 

 

Query to show Current date:

mysql> SELECT CURRENT_DATE;
+--------------+
| CURRENT_DATE |
+--------------+
| 2009-01-08 |
+--------------+
1 row in set (0.00 sec)
Advertisements

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 21, 2009

Related Tutorials

Discuss: Mysql Date Query  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:1
ammu
October 11, 2012
how to get previous 3 months data using sql query?

plzz help me with it....
DMCA.com