首页 > 数据库技术 > 详细

Oracle sql not in 多字段比对示例

时间:2014-09-14 12:55:47      阅读:528      评论:0      收藏:0      [点我收藏+]
select * from (select t2.cadastralno parcelid,t1.pkid taxpayerid,t2.taxtype taxtype,t1.booktype taxpayertype,
        t2.cadastralno parcelCadastralno,t2.landuser parcelLanduser,t1.payername taxpayerPayername 
         from grid_sysdb.bss_taxpayers t1,grid_sysdb.bbs_parcel t2,grid_sysdb.djsw_tddjxx t3 
        where t3.nsrdzdah = t1.pkid and t1.payername = t2.landuser)

        where (parcelid,taxpayerid) not in(select p.parcelid,p.taxpayerid from bss_parceltaxpayerrel p)


not in多个字段

Oracle sql not in 多字段比对示例

原文:http://blog.csdn.net/songhfu/article/details/39268049

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!