Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

postgresql create table add unique constraints

CREATE TABLE someTable (
    id serial PRIMARY KEY,
    col1 int NOT NULL,
    col2 int NOT NULL,
    UNIQUE (col1, col2)
)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #postgresql #create #table #add #unique #constraints
ADD COMMENT
Topic
Name
8+1 =