- 博客(1)
- 收藏
- 关注
原创 mysql数据库竖表和横表的
一、Mysql竖表和横表转化:1. 竖表转横表my01表: selectt.year,sum(case when t.month=1 then t.amount end) m1,sum(case when t.month=2 then t.amount end) m2,sum(case when t.month=3 then t.amount end) m3,sum(case
2018-01-11 17:54:37
3491
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人