求一SQL语句
WeiWY 2007-02-27 09:43:10 表A 有四列 id,C1,C2,其中ID为主键。
我想把如下两个查询结果合并到一起:
1.select top 10 * from A where C1=0 order by id desc
2.select * from A where C1=1
使用
select top 10 * from A where C1=0 order by id desc union select * from A where C1=1 语法通不过。