Answers for "how to make two columns unique in postgres"

SQL
1

how to make two columns unique in postgres

CREATE TABLE someTable (
    col1 int NOT NULL,
    col2 int NOT NULL,
    PRIMARY KEY (col1, col2)
)
Posted by: Guest on February-15-2022

Code answers related to "how to make two columns unique in postgres"

Code answers related to "SQL"

Browse Popular Code Answers by Language