gpt4 book ai didi

mysql - ER_WRONG_VALUE_COUNT_ON_ROW : Column count doesn't match value count at row 1

转载 作者:行者123 更新时间:2023-11-30 21:33:39 34 4
gpt4 key购买 nike

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);

最佳答案

从你的工资值中删除comma(,) - 它的数据类型是 int

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

关于mysql - ER_WRONG_VALUE_COUNT_ON_ROW : Column count doesn't match value count at row 1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54997139/

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com