oracle EXISTS 条件中有括号导致查询出的条件无法匹配
类似 select name ,age from table1 t where EXISTS(select * from (select 1 from table2 where age = t.age) )
然后 EXISTS中的t.age 就会失效 请问下怎么样才能解决这个问题
括号应该是可以直接去掉的吧
select name,age from table1 t where exists (select 1from table2 t2 where t2.age=t.age )
你子查询查全部的意义是什么?你后面的查询不是已经得到你想要的数值了么?