📜  phpmyadmin 添加外键 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:41.382000             🧑  作者: Mango

代码示例2
ALTER TABLE table_name
    ADD CONSTRAINT fk_foreign_key_name
    FOREIGN KEY (foreign_key_name)
    REFERENCES target_table(target_key_name);