Mysql stepped pit automatically update the time allowed only a

Execute the following SQL to create the table:

CREATE TABLE aa (
    a INT,
    b TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
    c TIMESTAMP DEFAULT CURRENT_TIMESTAMP
)

 

Given as shown:
Here Insert Picture Description

 

Two automatic updates when new time does not work, can only have one, you can try

Guess you like

Origin www.cnblogs.com/blackjoyful/p/11531700.html