本帖最后由 李过 于 2012-7-26 13:37 编辑
select * from
(select top 10 * from [new] where newsclass='a1' order by updateTime desc union all select top 10 * from [new] where newsclass='a2' order by updateTime desc)
as temp
order by newsclass, updateTime desc;
是这样吗? |
|