另外,还有个小小请求,sql中合并连接有现成的union,减连接有无好的办法实现,我通常用 select v1,v2,v3 from t1 a where t1.id=某某 and not exists (select 1 from t2 b where b.id=a.id and b.id1=a.id1 and b.id2=a.id2),但他的效率不高。  注意:连接条件中的字段超过1个,否则我就用 a.id not in(....)了.