select count(*) as' 0—5'
into a
from temp
where convert(varchar(20),date,112)='20060103'
select a.0—5
from a
注意,我的0-5 中间不是减号啊,是标点符号,减号我是不行的/