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

MySQL数据库-错误1166 Incorrect column name_MySQL

WBOY
Release: 2016-05-27 13:44:32
Original
2432 people have browsed 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; //bitsCN.com

Copy after login

MySQL 返回:

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

mysql-error-1166

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template