Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

duplicate key value violates unique constraint in postgresql

SELECT setval('tableName_id_seq', max(id)) FROM gst_codes;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #duplicate #key #violates #unique #constraint #postgresql
ADD COMMENT
Topic
Name
1+5 =