题解 | #删除emp_no重复的记录,只保留最小的id对应的记录。#
在audit表上创建外键约束,其emp_no对应employees_test表的主键id
http://www.nowcoder.com/practice/aeaa116185f24f209ca4fa40e226de48
alter table audit add constraint EMP_no
foreign key (EMP_no) REFERENCES employees_test (ID)
**创建 foreignkey 的内容 MySQL外键约束(FOREIGN KEY) (biancheng.net)**
查看4道真题和解析