Syntax:
NOW()
Description:
Returns the current date and time as a value in 'YYYY-MM-DD HH:MM:SS'
or YYYYMMDDHHMMSS.uuuuuu format, depending on whether the function is
used in a string or numeric context. The value is expressed in the
current time zone.
Examples:
MariaDB [(none)]> SELECT NOW(); +---------------------+ | NOW() | +---------------------+ | 2010-03-27 13:13:25 | +---------------------+ 1 row in set (0.00 sec) MariaDB [(none)]> SELECT NOW() + 0; +-----------------------+ | NOW() + 0 | +-----------------------+ | 20100327131329.000000 | +-----------------------+ 1 row in set (0.00 sec) MariaDB [(none)]>
See Also:
Comments
Comments loading...