ERROR 1091 (42000): Can‘t DROP ‘app_id‘; check that column/key exists
现删除外键,因sql语法为:alter table 表名 drop foreign key(外键字段名);查外键名的方法:show create table 表名;上图中CONSTRINT后面的值就是外键字段名。原因分析:app_id不是外键的字段名。建表:将app_id设置为外键。
原创
2024-02-22 17:29:24 ·
509 阅读 ·
1 评论