SQL exists 写法

来源:互联网 发布:网上申报软件下载 编辑:程序博客网 时间:2024/06/05 02:36
 查询T1表中的数据,要求T1表中的warecode 字段在T2 中不存在!

select *  from T1  wi where  not exists(select 1 from T2   w  where w.warecode = wi.warecode )  ;  
0 0
原创粉丝点击