Mysql
 sql >> Database >  >> RDS >> Mysql

MySQL - Converti MM/GG/AA in timestamp Unix

Usa UNIX_TIMESTAMP ;

SELECT UNIX_TIMESTAMP('2007-11-30 10:30:19');

Aggiornamento:

SELECT UNIX_TIMESTAMP(CAST(fieldName AS DATE));