CURDATE
Sintassi
CURDATE()
Spiegazione
Restituisce la data corrente come valore nel formato 'YYYY-MM-DD' o YYYYMMDD, a seconda che la funzione sia usata in un contesto stringa o numerico.
Esempi
SELECT CURDATE(); +------------+ | CURDATE() | +------------+ | 2010-03-27 | +------------+ SELECT CURDATE() + 0; +---------------+ | CURDATE() + 0 | +---------------+ | 20100327 | +---------------+
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.