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



Home Sql Sqldate Mysql Date Select

Related Tutorials


 
 

Share on Google+Share on Google+

Mysql Date Select

Advertisement
The Tutorial elaborate an example from 'Mysql Date Select'. This section makes you easy to understand how to get the current date from your database.

Mysql Date Select

     

The Tutorial elaborate an example from 'Mysql Date Select'. This section makes you easy to understand how to get the current date from your database. The SELECT DATE ('YYYY-MM-DD') is used to return the current selected date.

SELECT DATE('2009-01-02') : The Query is used to return the specified selected date from your database as fieldname 'DATE'.

Query to select date 

SELECT DATE('2009-01-02 01:02:03');

Output 

+-----------------------------+
| DATE('2009-01-02 01:02:03') |
+-----------------------------+
| 2009-01-02 |
+-----------------------------+
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 20, 2009

Related Tutorials

Discuss: Mysql Date Select  

Post your Comment


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