gpt4 book ai didi

mysql错误代码1054不知道是什么意思

转载 作者:行者123 更新时间:2023-11-29 06:13:24 25 4
gpt4 key购买 nike

我在“字段列表”中收到错误代码 1054 未知列“interlake”

drop table if exists `Boats`;
create table `Boats` (
`bid` int(11) not null,
`bname` varchar(45) default null,
`color` varchar(15) default null,
primary key (`bid`)
) engine=InnoDB default charset=latin1;

alter table `Boats` disable keys;
insert into `Boats` values
(101,`Interlake`,`blue`),(102,`Interlake`,`red`),(103,`Clipper`,`green`),(104,`Marine`,`red`);
alter table `Boats` enable keys;

最佳答案

使用引号代替反引号

INSERT INTO `Boats`
(`bid`, `bname`, `color`)
VALUES
(101,"Interlake","blue"),
(102,"Interlake","red"),
(103,"Clipper","green"),
(104,"Marine","red");

关于mysql错误代码1054不知道是什么意思,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37201070/

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