t-sql中pivot用法(行列轉換)

從另外一張表找的3974行是張三,8319行是李四,3051行是王五;sql 從stu_score查id,stu_id兩列,聚合求出 得出張三,李四,王五在stu_score中的記錄條數 spa select   [ 3974 ]   as  張三,  [ 8319 ]   as  李四,  [ 3051 ]   as  王五 from   ( select  id,stu_id  from  s
相關文章
相關標籤/搜索