ER_WRONG_VALUE_COUNT_ON_ROW:列计数与第1行的值计数不匹配

时间:2019-03-05 07:04:28

标签: mysql

ER_WRONG_VALUE_COUNT_ON_ROW:列数与第1行的值数不符

CREATE TABLE employee (

employee_id INT,
first_name VARCHAR(20) NOT NULL,
last_name VARCHAR(20),
birth_date DATE,
sex VARCHAR(1),
salary INT,
super_id INT,
branch_id INT,
PRIMARY KEY(employee_id)
);


INSERT INTO employee VALUES(100, 'David', 'Wallace', '1967-11-17', 'M', 250,000, 2, 1);

1 个答案:

答案 0 :(得分:0)

从您的薪水值中删除comma(,)-它的数据类型为int

INSERT INTO employee
VALUES(100, 'David', 'Wallace', '1967-11-17', 'M', 250000, 2, 1)