|
create table T (id int, jzl int)
insert T select 1, 2
union all select 2, 5
union all select 3, 8
union all select 4, 1
union all select 5, 4
union all select 6, 6
select a = count (*), b = sum (jzl) from T
--result
a b
----------- -----------
6 26
(1 row (s) affected) |
|