2010年7月19日
摘要: 原表如图: 效果: 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) 编辑