您好,我使用这个SQL:
CREATE TABLE test_on_update(
id bigint(20) NOT NULL,
user_id bigint(20) DEFAULT NULL,
description VARCHAR(255) DEFAULT NULL,
updated_time TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
PRIMARY KEY(id)
);
INSERT INTO test_on_update (id, user_id,descripti…