SQL Server 2008中的GROUPING SETS的应用实例
摘要:
DECLARE@tTABLE(studentnvarchar(50),classnvarchar(50),gradeint)/*insertsomedatas*/INSERTINTO@tSELECTN'孙小美',N'数学',10UNIONALLSELECTN'孙小美',N'语文',20UNIONALLSELECTN'孙小美',N'英语',30UNIONALLSELECTN'阿土伯',N'数学',4... 阅读全文
posted @ 2008-02-22 16:19 Goodspeed 阅读(701) 评论(0) 推荐(0) 编辑