1、用sql 语句直接查询带斜杠字段名会报错:
select * from five_orderdata where 收/支 = "收入";
2、解决方法
将字段名用反引号标记,即Tab键上方的按键:
select * from five_orderdata where `收/支` = "收入";
1、用sql 语句直接查询带斜杠字段名会报错:
select * from five_orderdata where 收/支 = "收入";
2、解决方法
将字段名用反引号标记,即Tab键上方的按键:
select * from five_orderdata where `收/支` = "收入";