select
* from
( SELECT A.*, ROWNUM RN FROM
(
SELECT A.*,B.USERPWiD from 测试表2 A left join 测试表3 B on A.userid = B.userid
) A
WHERE ROWNUM <= 4
) A WHERE RN >(1-1)*10