- mysql错误1215:无法添加外键
可参考https://blog.csdn.net/wangpeng047/article/details/19624351
我的原因:添加外键时,references
后面的被参照关系同样要指定主键
SQL注意事项
Thank you for your reward !
- Post link: https://didongdongdi.github.io/2019/05/09/SQL注意事项/
- Copyright Notice: All articles in this blog are licensed under BY-NC-SA unless stating additionally.