mysql 行转列 (case when的使用)

现有

table1 如下

table2 如下

需要统计:各个部门每个月的绩效总和

实现如下:

猜你喜欢

转载自www.cnblogs.com/tujia/p/8876617.html