DataBase/Mysql2012. 8. 20. 22:43



SELECT

@ROWNUM := @ROWNUM + 1 AS ROWNUM,

BOARD.*

FROM

BOARD,

(SELECT @ROWNUM := 0) R;


테이블 명 :  BOARD


참조

[http://theeye.pe.kr/entry/MySQL-MySQL%EC%9D%98-Oracle%EC%9D%98-ROWNUM%EC%9D%84-%EC%82%AC%EC%9A%A9%ED%95%98%EA%B8%B0]

Posted by NeverTry