Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的 SQL SPROC 结果集中有一个字段,它是一个计算的 CASE 语句,它返回 1 或 0(即 True/False)。
当我尝试使用 SqlDataReader 类的 GetBoolean 方法并引发异常时。
任何建议,将不胜感激。
bit在返回之前将值转换为 a
bit
CAST (value AS bit)