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 | +---------------------+ |