相关疑难解决方法(0)

在PostgreSQL中更新行时更新时间戳

在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中有类似的东西吗?

postgresql timestamp

66
推荐指数
1
解决办法
5万
查看次数

标签 统计

postgresql ×1

timestamp ×1