Notice: session_start(): A session had already been started - ignoring in /home/u614325693/domains/onedoubt.com/public_html/post.php on line 3
CURRENT_TIMESTAMP - ONEDOUBT.COM

Example

Return the current date and time:

SELECT CURRENT_TIMESTAMP();

Definition and Usage

The CURRENT_TIMESTAMP() function returns the current date and time.

Note: The date and time is returned as "YYYY-MM-DD HH-MM-SS" (string) or as YYYYMMDDHHMMSS.uuuuuu (numeric).

Syntax

CURRENT_TIMESTAMP()

Technical Details

Works in: From MySQL 4.0

More Examples

Example

Return the current date and time + 1:

SELECT CURRENT_TIMESTAMP() + 1;


Login
ADS CODE