Home Sql Sqldate Mysql Date Default



Mysql Date Default
Posted on: December 31, 2008 at 12:00 AM
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)

 

Related Tags for Mysql Date Default:
sqlmysqlcdatetimeseddefaultreturntoeuseulimfaultcurrentinmntmesurnatmyisimeandssrenthefaultndo


More Tutorials from this section

Ask Questions?    Discuss: Mysql Date Default  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.