Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

phpmyadmin add foreign key

ALTER TABLE table_name
    ADD CONSTRAINT fk_foreign_key_name
    FOREIGN KEY (foreign_key_name)
    REFERENCES target_table(target_key_name);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #phpmyadmin #add #foreign #key
ADD COMMENT
Topic
Name
6+8 =