1. ROWNUM 구현하기
SELECT @RNUM := @RNUM + 1 AS RNUM |
2. ROW_NUMBER(PARTITION BY ...) 구현하기
참고 : http://www.explodybits.com/2011/11/mysql-row-number/
ROW_NUMBER(PARTITION BY 컬럼1 ORDER BY 컬럼2) |
1. ROWNUM 구현하기
SELECT @RNUM := @RNUM + 1 AS RNUM |
2. ROW_NUMBER(PARTITION BY ...) 구현하기
참고 : http://www.explodybits.com/2011/11/mysql-row-number/
ROW_NUMBER(PARTITION BY 컬럼1 ORDER BY 컬럼2) |