sql >> Base de Datos >  >> RDS >> Mysql

Convertir fecha y hora de MySQL a marca de tiempo

UPDATE table1 A, table2 B SET B.date_added=UNIX_TIMESTAMP(A.date_added) WHERE A.id=B.id;

UNIX_TIMESTAMP('2015-01-15 12:00:00'); es suficiente para convertir una fecha y hora mysql en una marca de tiempo.