Derby DB SQL, Select Rows starting from row number
问题 How can I select From X rows to Y rows in a SQL in derby? For example: I would like to select row 15 - 30, but not top 15. Select all the row starting from row number 30. I tried LIMIT and ROWNUM do not work, how can I do it in derby? 回答1: According to the FAQ : Derby does not support the LIMIT syntax. However, Derby 10.4 added the ROW_NUMBER function and Derby 10.7 added the OFFSET and FETCH clauses. Derby also supports limiting the number of rows returned by a query through JDBC. <...>