摘要:
看下面的表结构:Category设备类型StringDeviceNum设备数量NumberArea区域String查询结果如下:现在要显示成下图的效果就要使用普通的行转列语句。sql语句:1 select AREA,2 sum(decode(category,'2G基站',devicenum,null)) "2G",3 sum(decode(category,'3G基站',devicenum,null)) "3G",4 sum(decode(category,'总计',devicenum,null)) &q 阅读全文