mysql无法添加外键
高洛峰
高洛峰 2017-04-17 15:50:10
0
1
476
高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(1)
大家讲道理

If you recreate a dropped table, it must have a definition that conforms to the foreign key constraints that reference it. It must have the correct column names and types, and there must be an index on the referenced key, as mentioned earlier. 如果这些不满足,MySQL返回错误1005并引用错误消息中的错误150,这意味着外键约束没有正确形成。 Similarly, if ALTER TABLE fails with error 150, it means that the foreign key definition will not be formed correctly for the changed table.

http://stackoverflow.com/ques...

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!