Java / JDBC
What does JDBC setMaxRows method do?
setMaxRows(int i) method limits the number of rows that the database returns from the query. The same can be done in SQL query itself, for example in MySQL, we can use the LIMIT clause to set the maximum number of rows returned by the query.
More Related questions...