Home  >  Article  >  Database  >  MySQL数据库-错误1166 Incorrect column name_MySQL

MySQL数据库-错误1166 Incorrect column name_MySQL

WBOY
WBOYOriginal
2016-05-27 13:44:322391browse

出现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; //bitsCN.com

MySQL 返回:

MySQL 报出:#1166 – Incorrect column name ‘xxx'

mysql-error-1166

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

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn