This is a read-only copy of the MariaDB Knowledgebase generated on 2024-11-14. For the latest, interactive version please visit https://mariadb.com/kb/.

NOW

Sintassi

NOW()

Spiegazione

Restituisce la data e l'ora correnti nel formato 'YYYY-MM-DD HH:MM:SS' o YYYYMMDDHHMMSS.uuuuuu, a seconda che la funzione sia usata in un contesto numerico o stringa. Il valore è espresso nella time zone corrente.

Esempi

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)]> 

Vedi anche

Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.