两条select语句如何同时执行
selecttop2*fromdzzwheresex=2orderbydate和selecttop7fromdzzwhereformal=1orderbyidunion是...
select top 2 * from dzz where sex=2 order by date
和
select top 7 from dzz where formal=1 order by id
union是可以的,如果select top 2 * from dzz where sex=2 order by date里面的记录再排除select top 7 * from dzz where formal=1 order by id的记录呢,谢谢 展开
和
select top 7 from dzz where formal=1 order by id
union是可以的,如果select top 2 * from dzz where sex=2 order by date里面的记录再排除select top 7 * from dzz where formal=1 order by id的记录呢,谢谢 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询