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旁边的反引号` ?(选用英文输入法),而?不是'单引号
