Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

add foreign key to existing table postgres

ALTER TABLE table_a
ADD FOREIGN KEY (col_table_a) REFERENCES table_b(pk_table_b);
Source by www.postgresql.org #
 
PREVIOUS NEXT
Tagged: #add #foreign #key #existing #table #postgres
ADD COMMENT
Topic
Name
6+3 =