foreign key in mysql phpmyadmin code example
Example 1: create foreign key phpmyadmin
ALTER TABLE table_name
ADD CONSTRAINT fk_foreign_key_name
FOREIGN KEY (foreign_key_name)
REFERENCES target_table(target_key_name);
Example 2: 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);
Example 3: foreign key in phpmyadmin
Foreign key in phpmyadmin