-
Zero子夜
发布于 2021-01-27 10:03
-
收藏
PostgreSQL 9.5-使用函数或with实现create table test(id int primary key, info text, crt_time timestamp);with upsert as (update test set info='test',crt_time=now() where id=1 returning *) insert into test select 1,'test',now() where ..