中国开发网: 论坛: 程序员情感CBD: 贴子 860453
why
我这样写的,基本上可以
select a ,
b1='D',
c1=sum(case when b='D' then c end),
b2='c' ,
c2=sum(case when b='c' then c end)
from tb
group by a

相关信息:


欢迎光临本社区,您还没有登录,不能发贴子。请在 这里登录