Last active
August 29, 2015 14:10
-
-
Save ffflorian/c35a5300a9a735ae21c7 to your computer and use it in GitHub Desktop.
Relate two tables in PHPMyAdmin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Taken from http://bytes.com/topic/mysql/answers/742624-how-relate-between-two-tables-phpmyadmin | |
ALTER TABLE table1 ADD FOREIGN KEY (local_key) REFERENCES table2(foreign_key); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment