postgresql添加数据时主键冲突

postgres=# SELECT setval('表名_id_seq', (SELECT max(id) FROM 表名));

posted @ 2020-10-23 14:27  小皮浩  阅读(574)  评论(0编辑  收藏  举报