sql数据库表的拆分
发布网友
发布时间:2022-04-30 02:30
我来回答
共1个回答
热心网友
时间:2022-04-08 20:01
参考语句:
select code,
sum(case when play_id=1 then cnt else 0 end ) play_id01,
sum(case when play_id=1 then cnt else 0 end ) play_id02,
sum(case when play_id=1 then cnt else 0 end ) play_id03
form 表
group by code