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



Home Sql Sqldate Mysql Date Only

Related Tutorials


 
 

Share on Google+Share on Google+

Mysql Date Only

Advertisement
The Tutorial illustrate an example on Mysql Date Only. To understand this example, we create an example that include a Query date (now ( )) returns you a current date as field name 'DateOnly'.

Mysql Date Only

     

Mysql Date Only is used to show the current Date.

Understand with Example

The Tutorial illustrate an example on Mysql Date Only. To understand this example, we create an example that include a Query date (now ( ))  returns you a current date as field name 'DateOnly'.

date(now ( ) ) : The date(now ( )) return you  a current date value as Date Only field name. 

Query:-

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

Output:-

+------------+
| DateOnly   |
+------------+
| 2008-12-22 |
+------------+
1 row in set (0.06 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: April 3, 2006

Related Tutorials

Discuss: Mysql Date Only  

Post your Comment


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