CURRENT_TIMESTAMP()
This page is part of MariaDB's Documentation.
The parent of this page is: Functions for MariaDB Xpand
Topics on this page:
Overview
See NOW().
USAGE
CURRENT_TIMESTAMP([precision])
Argument Name | Description |
---|---|
| Optional. The number of desired decimal digits (0-6). Default: 0. |
EXAMPLES
SELECT CURRENT_TIMESTAMP();
+---------------------+
| CURRENT_TIMESTAMP() |
+---------------------+
| 2020-10-13 21:04:32 |
+---------------------+
SELECT CURRENT_TIMESTAMP()+0;
+-----------------------+
| CURRENT_TIMESTAMP()+0 |
+-----------------------+
| 20201013210432.0000 |
+-----------------------+
SELECT CURRENT_TIMESTAMP(6);
+----------------------------+
| CURRENT_TIMESTAMP(6) |
+----------------------------+
| 2020-10-13 21:04:32.489851 |
+----------------------------+