测试数据脚本 CREATE TABLE Atable ( S# INT, Sname ), Sage INT, Sfrom ) ) insert into Atable ,N,N'A' union all ,N, N'A' union all ,N,N'A' union all ,N,N'A' CREATE TABLE Btable ( S# INT, Sname ), Sage INT, Sfrom ) ) insert into Btable ,N,N'B' union all ,N,N'B…