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



Home Sql Sqldate Mysql Date Default

Related Tutorials


 
 

Share on Google+Share on Google+

Mysql Date Default

Advertisement
Date Default in Mysql is used to return the current date and time.

Mysql Date Default

     

Date Default in Mysql is used to return the current date and time.

Understand with Example

The Tutorial illustrate an example from Date Default in Mysql. To grasp this example, we use current_timestamp ( ) query that return the current database system timestamp as a datetime value.

Query:-

 

 

 

 

 

mysql> select current_timestamp()as Defaultdate;

Output:-

+---------------------+
| Defaultdate |
+---------------------+
| 2008-12-19 16:31:30 |
+---------------------+
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 Default  

Post your Comment


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