create view test_spasselect cast(case when isnull(nt,0)=0 then 1 else 0 end as bit)from 表注:sqlserver bit 类型 只有0和1,没有false和true,如果你要用f和t,换成varchar就可以了
cast( case when isnull(nt,0.0000) = 0.0000 then true else false end as bit ) as nt