第1个回答 2010-09-07
select * from table1 t1 where (t1.col1 , t1.col2,t1.col3 ) in (
select t2.col1,t2.col2,t2.col3 from table2 t2) ;
等价于
select t1.* from table1 t1 , table2 t2
where t1.col1 = t2.col1
and t1.col2 = t2.col2
and t1.col3 = t2.col3 ;
----------------------------------
条件集合不唯一也就是说有多条,但是连接查询一样可以用。你是不是表达错了老师的意思?本回答被提问者采纳