This tutorial explains how to use the MySQL SYSDATE function with syntax and examples.
The MySQL SYSDATE function returns the current date and time.
The syntax for the SYSDATE function in MySQL is:
SYSDATE( )
There are no parameters or arguments for the SYSDATE function.
The SYSDATE function can be used in the following versions of MySQL:
Let's look at some MySQL SYSDATE function examples and explore how to use the SYSDATE function in MySQL.
For example:
mysql> SELECT SYSDATE();
Output: '2014-02-17 10:27:21'
mysql> SELECT SYSDATE() + 0;
Output: 20140217102721
mysql> SELECT SYSDATE() + 1;
Output: 20140217102722