*.10건만 조회
 SELECT
 @RNUM:=@RNUM+1 AS ROWNUM
 ,a.*
 FROM (SELECT @RNUM:=0) R,
  (
   select * from ee_master a
  ) a limit 10

* ROWNUM 이 5보다 큰 데이터만 조회
select b.* from (
 SELECT @RNUM:=@RNUM+1 AS ROWNUM ,a.* FROM (SELECT @RNUM:=0) R,
  (
   select * from ee_master a
   ) a
) b
where ROWNUM > 5
 

+ Recent posts