要统计职工表中员工的个数,下面答案错误的是: A: declare @cnt intset @cnt=(select count(职工编号) from 职工表) print @cnt as 公司员工总数 B: declare int @cntset @cnt=(select count(职工编号) from 职工表) select @cnt as 公司员工总数 C: declare @cnt intselect @cnt=count(职工编号) from 职工表 select @cnt as 公司员工总数 D: declare @cnt intset @cnt=(select count(职工编号) from 职工表) print '公司员工总数'+Convert( varchar(20),@cnt)
要统计职工表中员工的个数,下面答案错误的是: A: declare @cnt intset @cnt=(select count(职工编号) from 职工表) print @cnt as 公司员工总数 B: declare int @cntset @cnt=(select count(职工编号) from 职工表) select @cnt as 公司员工总数 C: declare @cnt intselect @cnt=count(职工编号) from 职工表 select @cnt as 公司员工总数 D: declare @cnt intset @cnt=(select count(职工编号) from 职工表) print '公司员工总数'+Convert( varchar(20),@cnt)
1