一个查询赋值有关问题
一个查询赋值问题
有表T1,字段F1,F1可为空,把F1为空的记录条数,赋给变量@i怎么写
------解决方案--------------------
declare @i int
select @i = count(*) from T1 where F1 is null
有表T1,字段F1,F1可为空,把F1为空的记录条数,赋给变量@i怎么写
------解决方案--------------------
declare @i int
select @i = count(*) from T1 where F1 is null