SQL SERVER中有个BIT字段,有0,1两个值,看我的查询语句那里错了?我想找出BIT字段为0的记录:
SqlConnection cn=new SqlConnection(SqlcnClass.cn());
if(cn.State==ConnectionState.Closed) cn.Open();
string selStr="select ANAME,MyBit from fix_adjunctlist where MyBit=0";
SqlCommand cmd=new SqlCommand(selStr,cn);
SqlDataReader dr=cmd.ExecuteReader();