可以查看博客园上传的文件 pivot 除了要转成列的字段(classnum,classid)值不一样,其他值都应该相同,否则转的数据有问题 转载于:https://www.cnblogs.com/wlzhang/p/5057271.html