ALTER TABLE table1 ADD constraint fkname FOREIGN KEY (tid) REFERENCES table2(id)
转载于:https://www.cnblogs.com/goodsunny/p/3516881.html
ALTER TABLE table1 ADD constraint fkname FOREIGN KEY (tid) REFERENCES table2(id)
转载于:https://www.cnblogs.com/goodsunny/p/3516881.html