develog

rownum, top, limit 본문

DB/DB common

rownum, top, limit

냐옴 2013. 3. 6. 11:17

--Oracle

SELECT *

FROM TABLE_NM

WHERE ROWNUM <= 10


--MS SQL

SELECT TOP 10 *

FROM TABLE_NM


--MySQL

SELECT *

FROM TABLE_NM

LIMIT 1, 10

'DB > DB common' 카테고리의 다른 글

[DB] DB version  (0) 2017.04.25
[DB] DDL, DML, DCL  (0) 2017.03.27
[jdbc] jdbc, driver, connection url  (0) 2016.06.02
ROWNUM, TOP, LIMIT  (0) 2015.10.22
Configuring Connection Pooling in Tomcat  (0) 2013.03.07
Comments