在MySQL中,我们可以在changetimestamp每次更改行时更新列时执行此操作:
create table ab (
id int,
changetimestamp timestamp
NOT NULL
default CURRENT_TIMESTAMP
on update CURRENT_TIMESTAMP
);
Run Code Online (Sandbox Code Playgroud)
在PostgreSQL中有类似的东西吗?