Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

mysql create link between tablesdatabase

ALTER TABLE `table1` ADD CONSTRAINT table1_id_refs FOREIGN KEY (`table2_id`) REFERENCES `table2` (`id`);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #mysql #create #link #tablesdatabase
ADD COMMENT
Topic
Name
4+3 =