Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

add column with foreign key constraint sql server

ALTER TABLE one
    ADD two_id INTEGER,
    ADD CONSTRAINT FOREIGN KEY(two_id) REFERENCES two(id);
 
PREVIOUS NEXT
Tagged: #add #column #foreign #key #constraint #sql #server
ADD COMMENT
Topic
Name
9+6 =