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 `收/支` = "收入";