bugl
bugl
HomeLearnPatternsPathsSearchPremium
HomeLearnPatternsPaths

Loading lesson path

Learn/SQL/SQL References
SQL•SQL References

MySQL SYSDATE() Function

Example

SELECT SYSDATE();

Definition and Usage

The SYSDATE() 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 (numeric).

Syntax

SYSDATE()

Technical Details

Works in:From MySQL 4.0

Previous

MySQL SUBTIME() Function

Next

MySQL TIME() Function