Oracle union order by & SqlServer union order by

Oracle数据库的union 操作为:

select * from (select * from table1 union select * from table2 ) order by column1Nameasc, column2Name asc

 

 SqlServer数据库的union操作为:

select * from table1 union select * from table2 order by column1Name asc, column2Name asc

猜你喜欢

转载自luhantu.iteye.com/blog/1981760