Curriculum
Course: SQL
Login

Curriculum

SQL

SQL References

0/80

MySQL Functions

0/139

SQL Server Functions

0/84

SQL Quick Ref

0/1
Text lesson

SYSDATE

Example

Retrieve the current date and time.

SELECT SYSDATE();

Definition and Usage

The SYSDATE() function retrieves the current date and time.

Note: The SYSDATE() function returns the current date and time in the format “YYYY-MM-DD HH:MM” (string) or YYYYMMDDHHMMSS (numeric).

Syntax

SYSDATE()

Technical Details

Works in:

 From MySQL version 4.0

More Examples

Example

Retrieve the current date and time, incremented by 1 unit.

SELECT SYSDATE() + 1;