中国开发网: 论坛: 程序员情感CBD: 贴子 228347
Miracle
用存储过程吧
select 'a' as F, * into #t1 from authors order by au_id asc

select 'b' as F, * into #t2 from authors order by au_id desc

select * from #t1
union all
select * from #t2

drop table #t1
drop table #t2

相关信息:


欢迎光临本社区,您还没有登录,不能发贴子。请在 这里登录