Answer the question
In order to leave comments, you need to log in
How to remove Unique in PostgreSQL?
Created a table. Added "uniqueness" to one of the columns. Completed.
Then I wanted to remove unique from the column, but that was not the case. It gives me an error when running:
How to fix it?
Answer the question
In order to leave comments, you need to log in
ALTER TABLE "some_table" DROP CONSTRAINT "unique_somefield";
SELECT *
FROM information_schema.constraint_table_usage
WHERE table_name = 'some_table';
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question