The getMaxRecords and setMaxRecords methods of the Recordset class indicate or set the maximum number of records to return to a Recordset from a query, respectively.
public int getMaxRecords();
public void setMaxRecords(int maxRecords);
Sets or returns a value whose default is zero (no limit).
maxRecords | The maximum number of records. |