Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

postgres alter table add primary key

-- To set a column as primary key:
ALTER TABLE distributors ADD PRIMARY KEY (tablename);
Source by www.postgresql.org #
 
PREVIOUS NEXT
Tagged: #postgres #alter #table #add #primary #key
ADD COMMENT
Topic
Name
7+1 =