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



Home Sql Sqldate Mysql Date no Time

Related Tutorials


 
 

Share on Google+Share on Google+

Mysql Date no Time

Advertisement
The Tutorial illustrate an example 'Date no Time' in Mysql . In this Example, the date(now( ) ) return you the current date with no time.

Mysql Date no Time

     

Mysql Date no Time is used to find out the current date with no time.

Understand with Example

The Tutorial illustrate an example 'Date no Time' in Mysql . In this Example, the date(now( ) ) return you the current date  with no time.

date(now( ) ) : The date(now( ))  return you the current year, month and date.

Query:-

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

Output:-

+------------+
| Date       |
+------------+
| 2008-12-22 |
+------------+
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 20, 2009

Related Tutorials

Discuss: Mysql Date no Time  

Post your Comment


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