当前位置: 移动技术网 > IT编程>数据库>Mysql > MySQL数据库-错误1166 Incorrect column name

MySQL数据库-错误1166 Incorrect column name

2017年12月12日  | 移动技术网IT编程  | 我要评论

出现mysql数据库-错误1166 incorrect column name 字段名,这个是字段中有空格了,这个只要利用alert或phpmyadmin进入修改即可解决.

今天在用navicat for mysql给mysql数据库修改表的字段时报如下的错误

sql 查询:

create table `gfan_content`.`channel_into` ( 
`time` int( 11 ) not null comment '产品id', 
`bid` int( 11 ) not null comment '渠道商id' 
) engine = myisam character set utf8 collate utf8_general_ci; //jb51.net

mysql 返回:

mysql 报出:#1166 – incorrect column name ‘xxx'

mysql-error-1166

解决方法,检查字段里面是不是有空格,去掉就可以了.

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网