浏览模式: 普通 | 列表
10月, 2010 | 1
将多个查询合并输出,每个查询调用不同的显示页
select top 50 Id,Title,Addtime,url='news1-detail.aspx' from New1

union ( SELECT top 50 Id,Title,Addtime,url='news2-detail.aspx' FROM news2 WHERE isdel=0 order by addtime desc )
union ( SELECT top 50 Id,Title,Addtime,url='news3-detail.aspx' FROM news3 WHERE isdel=0 order by addtime desc )

ORDER BY Addtime DESC
1