Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

postgres add foreign key to existing table

UPDATE student
SET name = institute.inst_name
FROM institute
WHERE student.student_id = institute.inst_id;
Source by kb.objectrocket.com #
 
PREVIOUS NEXT
Tagged: #postgres #add #foreign #key #existing #table
ADD COMMENT
Topic
Name
4+4 =