mysql建立外键报错(error 150)
来源:互联网 发布:js 工作台布局 编辑:程序博客网 时间:2024/06/06 01:09
查看详细错误:Cannot find an index in the referenced table where the
referenced columns appear as the first columns, or column types
in the table and the referenced table do not match for constraint.
Note that the internal storage type of ENUM and SET changed in
tables created with >= InnoDB-4.1.12, and such columns in old tables
cannot be referenced by such columns in new tables.
1.被关联表中的字段不是索引(需要建立索引)
alter table `table-name` add constraint `key-name` foreign key `colume-name` references `table-name1`(`colume-name1`) on update cascade on delete cascade;
- mysql建立外键报错(error 150)
- mysql error (ERROR大全)
- MYSQL Error Code:150
- mysql error 150
- mysql error 150
- mysql -error 1005 (errno:150)
- mysql ERROR 1045 (28000)
- mysql迁移(mysql error 13)
- mysql 建立索引(sql 建索引)
- mysql 建立索引 唯一索引(转)
- MySQL Error
- mysql error
- mysql error
- mysql error
- mysql error
- MYSQL ERROR
- myeclipse中使用database explorer建立MySQL的数据库连接,testDriver时提示error while performing database login with t
- Mysql建立索引
- c#编成资料
- FreeRTOS分析
- 使用AsyncTask时出现doInBackground没有调用的处理方法
- 我的Android进阶之旅------>Android资源文件string.xml中\u2026的意思
- 几首小诗
- mysql建立外键报错(error 150)
- CALayer简单教程
- Confluence与Jira整合之统一用户管理
- Discuz x2.5 积分策略添加实践
- Oracle 调优 32位一般SGA设置
- vb.net资料
- ubuntu 12.04安装JDK1.7
- oracle监听的静态注册,与动态注册理解
- 5种调优Java NIO和NIO.2的方式