db2 limits the number of rows returned, and queries the first n records

 

SELECT COLUMNS FROM TABLE (ORDER BY COLUMNS) FETCH FIRST N ROWS ONLY

 

refer to:

"Limited Result Set Rows" in SQL Difference Analysis of Popular Databases

http://blog.csdn.net/dm520/article/details/6291940

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327018704&siteId=291194637