在SQL Server 表設計界面顯示的是true/false,輸入也是true/false
select查詢出來的結果是1/0,可以用1/0也可以用true/false輸入,如果用true/false需要以字符串格式,例如
select * from 表名 where 列=1 等同於
select * from 表名 where 列='true'
在界面上可以用於CheckBox選項等
讀bit字段的值時,在SqlServer中用sql語句查出來的結果中顯示為0和1,
程序中用一個datatTable返回結果,然后dataTable.rows[i][j].toString()得到的字符串
的值是“true”和“false”
