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



Home Sql Sqldate Mysql Date from Date

Related Tutorials


 
 

Share on Google+Share on Google+

Mysql Date from Date

Advertisement
Mysql Date from Date Time in Mysql return the Current date.

Mysql Date from Date

     

Mysql  Date from Date Time in Mysql return the Current  date.

Understand with Example

The Tutorial illustrate an example from 'DateTime in Mysql'. To grasp this example, we use date(current_trimestamp ( )) query that return you the current date  from date time as Date field name.

Query:-

 

 

mysql> select date(current_timestamp()) as Date;

Output:-

+------------+
| Date |
+------------+
| 2008-12-19 |
+------------+
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: December 31, 2008

Related Tutorials

Discuss: Mysql Date from Date  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:1
sreenath
July 12, 2011
need help regarding mysql date functions

Hi, I need queries for yesterday,week, last week, last 2 weeks, current month, last month, last 3 months, last 6 months and annual records separate queries. I am not finding the correct solution. Thanks sreenath
DMCA.com