sql joins 与 in

in: 先筛查出结果集,再在结果集中筛选。  select * from A where A.id in(select B.id from B where B.DZ='110' ) and A.DZ='110'              这个的结果是  B.DZ=110 与 A.DZ=110 都得满足的条件    
相关文章
相关标签/搜索