MariaDB: SYSDATE Function
This MariaDB tutorial explains how to use the MariaDB SYSDATE function with syntax and examples.
Description
The MariaDB SYSDATE function returns the current date and time.
Syntax
The syntax for the SYSDATE function in MariaDB is:
SYSDATE( )
Parameters or Arguments
There are no parameters or arguments for the SYSDATE function.
Note
- The SYSDATE function will return the current date as a 'YYYY-MM-DD HH:MM:SS' format, if used in a string context.
- The SYSDATE function will return the current date as a YYYYMMDDHHMMSS format, if used in a numeric context.
Applies To
The SYSDATE function can be used in the following versions of MariaDB:
- MariaDB 10
Example
Let's look at some MariaDB SYSDATE function examples and explore how to use the SYSDATE function in MariaDB.
For example:
SELECT SYSDATE(); Result: '2014-11-16 10:27:21' SELECT SYSDATE() + 0; Result: 20141116102721 SELECT SYSDATE() + 1; Result: 20141116102722
Advertisements