Online Training Spring Hibernate Training in Delhi R Programming Training Course Big Data and Hadoop Training Java Training

Mysql Current TimeStamp

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.

Ads

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

Ads
Share on Google+Share on Google+

Mysql Current TimeStamp

Posted on: January 20, 2009 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Advertisements

 

Discuss: Mysql Current TimeStamp  

Post your Comment


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

Ads

 

Ads