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

Digita date default sysdate in MySQL

Invece di sysdate , prova CURRENT_TIMESTAMP come:

CREATE TABLE foo (
    creation_time      DATETIME DEFAULT   CURRENT_TIMESTAMP,
    modification_time  DATETIME ON UPDATE CURRENT_TIMESTAMP
)