查询T1表中的数据,要求T1表中的warecode 字段在T2 中不存在! select * from T1 wi where not exists(select 1 from T2 w where w.warecode = wi.warecode ) ;