isDelete(bit类型)值为1,表示已删除,判断未删除的记录时,我用 where isDelete<>1,只显示了isDelete为false(0)的记录,为空(null)的记录则没有查出来
where isnull(isDelete,0)<>1;
这样就对了,这个和int 类型的不同,如果直接用
where isnull==0 || isnull==1
这样是查不出来的
isDelete(bit类型)值为1,表示已删除,判断未删除的记录时,我用 where isDelete<>1,只显示了isDelete为false(0)的记录,为空(null)的记录则没有查出来
where isnull(isDelete,0)<>1;
这样就对了,这个和int 类型的不同,如果直接用
where isnull==0 || isnull==1
这样是查不出来的