Home Sql Mysql-example Mysql Current TimeStamp

Related Tutorials


 
 

Share on Google+Share on Google+

Mysql Current TimeStamp

Advertisement
The Tutorial illustrate an example from 'Mysql Current TimeStamp'. To understand, we use current_date query that return you the current date of your database as Current_Date.

Mysql Current TimeStamp

     

Mysql Current Timse Stamp is used to show the current time and current date in your database.

Understand with Example

The Tutorial illustrate an example from 'Mysql Current TimeStamp'. To understand, we use current_date query that return you the current date of your database as Current_Date.

Query for Current Date

select CURRENT_DATE;

Result

+--------------+
| CURRENT_DATE |
+--------------+
| 2009-01-03   |
+--------------+

Query for Current Timestamp

The Query below is used to return the current date and time of your database.

select CURRENT_TIMESTAMP;

Result

+---------------------+
| CURRENT_TIMESTAMP   |
+---------------------+
| 2009-01-03 11:48:50 |
+---------------------+
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: January 20, 2009

Related Tutorials

Discuss: Mysql Current TimeStamp  

Post your Comment


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