【PostgreSQL】建表时给timestamp字段设上缺省值

create table tagcnt(

    id int,

    cnt int,

    create_time timestamp default now(),

    primary key(id)

)

以上的函数now() 即相当于oracle里的sysdate。

END

posted @ 2022-02-15 03:54  不朽的飞翔  阅读(463)  评论(0编辑  收藏  举报