Access Database: select * from 分站 where 巡检开关=true SQL Server Database: select * from 分站 where 巡检开关=1
不同的数据库不一样的。试试下面各种格式 "select * from 分站 where 巡检开关=1" "select * from 分站 where 巡检开关=-1" "select * from 分站 where 巡检开关='1'" "select * from 分站 where 巡检开关='-1'" "select * from 分站 where 巡检开关='Y'"
select * from 分站 where 巡检开关=true
SQL Server Database:
select * from 分站 where 巡检开关=1
"select * from 分站 where 巡检开关=1"
"select * from 分站 where 巡检开关=-1"
"select * from 分站 where 巡检开关='1'"
"select * from 分站 where 巡检开关='-1'"
"select * from 分站 where 巡检开关='Y'"