pgsql批量新增覆盖原表数据
作者:互联网
insert into table_name(sort_type,sort_desc,sort_content,create_time, update_time) VALUES %s ON CONFLICT (sort_type) DO UPDATE SET (sort_desc,sort_content,update_time) = (EXCLUDED.sort_desc,EXCLUDED.sort_content,EXCLUDED.create_time)
# 唯一索引为:sort_type
标签:sort,content,批量,原表,pgsql,EXCLUDED,time,type,desc 来源: https://www.cnblogs.com/itBlogToYpl/p/16382984.html