Unique constraint

From wikieduonline
Revision as of 10:15, 25 November 2022 by Welcome (talk | contribs)
Jump to navigation Jump to search
ERROR:  duplicate key value violates unique constraint "YOUR_TEXT_HERE"
DETAIL: Key (id)=(XXXXXX) already exists


Sonarqube

### Error updating database.  Cause: org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "live_measures_component"

Related

ALTER TABLE tablename ADD CONSTRAINT constraintname UNIQUE (columns);

See also

Advertising: