从一个select中将另外一个select排除掉
现在又两个select查询结果,结构完全相同第二个select是第一个select的子集现在想要得到从第一个select中奖第二个select排除掉后的余集有办法通过SQL语句实现么?
其他答案
假设两个查询是这样的:select * from 表 where a>10select * from 表 where a>100那 select * from 表 where a>10 and id not in(select id from 表 where a>100)
2011-01-09 09:37
来自北京市
赞(0)点赞赞(0)举报
免责声明:问答内容均来源于互联网用户,房天下对其内容不负责任,如有版权或其他问题可以联系房天下进行删除。




