会员
众包
新闻
博问
AI培训
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Kingly
天下风云出我辈,一入江湖岁月催。皇图霸业谈笑中,不胜人生一场醉。
博客园
首页
新随笔
联系
订阅
管理
2010年7月19日
SQL透视表
摘要: 原表如图: 效果: SQL: select id, sum(case when type=1 then rate else 0 end) as f1, sum(case when type=2 then rate else 0 end) as f2, sum(case when type=3 the
阅读全文
posted @ 2010-07-19 20:27 Kingly
阅读(252)
评论(0)
推荐(0)
编辑