浅谈SQLServer行列转换PIVOT函数的使用

以学生表举个例子,展示学生的各门学科和成绩,咱们先新建一张表(表中插入测试值的时候用到了rand取随机数,没用过的能够了解下--> 点击打开): Create Table Students(Name varchar(10), Subject Nvarchar(10),Score int) Insert into Students Select 'Andy' ,'Chiness',round
相关文章
相关标签/搜索