IntegrityError duplicate key value violates unique constraint - django/postgres

SELECT setval('tablename_id_seq', (SELECT MAX(id) FROM tablename)+1)
相關文章
相關標籤/搜索