- 博客(1)
- 收藏
- 关注
原创 MySql添加外键报错There is no index in the referenced table
tb_dept.id为int unsigned,而tb_emp.dept_id为int。name varchar(10) not null comment '姓名',name varchar(10) not null comment '部门名称',id int auto_increment comment '主键ID'也即tb_emp表的 dept_id字段引用tb_dept表的id字段。
2024-03-09 16:01:46
361
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人