select * from ((select A.*,ROWNUM rn from (select * from product) A where ROWNUM<4 ) where rn>1) p,merchant m where p.merchantId=m.Id;
2个表联查,product表有4条数据,我要取其中id=2,id=3的所有值
报错了。

------解决思路----------------------
错误贴出来
------解决思路----------------------
select * from (
SELECT * FROM (select A.*,ROWNUM rn from product A where ROWNUM<4 ) where rn>1
) p,merchant m
where p.merchantId=m.Id;