By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
Table | Create Table |
---|---|
test | CREATE TABLE `test` ( `id` int(11) DEFAULT NULL, `ts` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=latin1 |
check_data |
---|
1 |
Duplicated values not allowed.
check_data |
---|
0 |
id | ts |
---|---|
1 | 2022-01-01 00:00:00 |
2 | 2022-01-23 10:02:11 |
2 | 2022-01-23 10:02:11 |