我正在尝试运行此查询,但它返回零行。任何线索为什么?
Select distinct a.id
from table1 a, table b
where ( a.id= b.id or a.id = b.secondid ) and rownum < 200;
但是,如果我在没有 ROWNUM 子句的情况下运行上述查询,它会找到记录:
Select distinct a.id
from table1 a, table b
where ( a.id= b.id or a.id = b.secondid );
我很困惑为什么第一个查询不起作用。