DB별 Top N 얻어오기

Programming/Database 2011.11.29 댓글 Joshua95

* PostgreSQL
SELECT * FROM tbTable LIMIT 10

* MS-SQL
SELECT TOP 10 * FROM tbTable

* IBM DB2
SELECT * FROM tbTable FETCH FIRST 10 ROWS ONLY

 - 2011.11.29 Joshua95

댓글