select count(1)
from ( select ROW_NUMBER() over (order by MinuteID) as RowId,*from OA_Minutes WHERE 1=1 and DelFlag='false') as tem select * from OA_Minutes WHERE 1=1 and DelFlag='false' select * from OA_Minutes WHERE 1=1 and DelFlag=0--在C#中数据库中的bit字段要用bool型表示
--在sql server 中数据库中的bit字段可以用数字 "0"或"1"标识,也可以用字符串'false'或'true'表示