用了union就不能用order by了? select 1 as id union select 2 order by id desc 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 2000没错!如果不行就:select * from (select 1 as a union select 2 ) as xorder by 1 desc select 1 union allselect 2 order by 1 desc可以。select 1 order by 1 descunion allselect 2 不可以. 所以 用union和用order by没有冲突 问个比较弱的问题 sql 如何使用SQL里面的事件探查器??? 多用户写数据库,如可防止冲突 ? 标识自动增长的主键 在插入一条数据后怎么获得这个主键的值? 菜鸟求助:怎么样还原数据库! 关于SQL Server用户登陆的问题,, 数据的动态插入 请教各位一个关于SQL SERVER数据库连接的问题(人人给分,不够再加!) 菜鸟送分题 高分求教分布式数据库设计问题??在线等待 我的SQL SERVER2000怎么老是停呢? 如何在ASP中实现备份、还原SQLSERVER数据库?
select * from (
select 1 as a union select 2 ) as x
order by 1 desc
union all
select 2 order by 1 desc
可以。
select 1 order by 1 desc
union all
select 2
不可以.