您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

mySQL字段中包含关键字的插入有关问题

2024/4/28 6:40:25发布12次查看
mysql字段中包含关键字的插入问题 表 tb_system_help2中包含关键字字段order 插入时会报错。 insert into tb_system_help2(sysid,sysname,helpid,helpname,parentid,isleaf,order) values(?,?,?,?,?,?,?) ?解决办法: insert into tb_system_help2(sysid,sysn
mysql字段中包含关键字的插入问题
表tb_system_help2中包含关键字字段order 插入时会报错。
insert into tb_system_help2(sysid,sysname,helpid,helpname,parentid,isleaf,order) values(?,?,?,?,?,?,?)
?解决办法:
insert into tb_system_help2(sysid,sysname,helpid,helpname,parentid,isleaf,`order`) values(?,?,?,?,?,?,?)
?
改成?`order`?,注意是数字键1旁边的反引号` ?(选用英文输入法),而?不是'单引号
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product