PEAR-Handbuch | ||
---|---|---|
Zurück | Nach vorne |
Sets the limit for a query. (this only works on databases that support the LIMIT clause), without parameters, it will clear the current limit.
int $from - limit start (or number), or blank to reset
int $number - limit results to number
Diese Methode kann nicht statisch aufgerufen werden.
Since postgres and mysql only really support limit directly - calling this on an unsupported database will emit a PEAR::Error and die.
Beispiel 34-1. Setting the Limit
|
Beispiel 34-2. Resulting SQL
|
Zurück | Zum Anfang | Nach vorne |
->escape() | Nach oben | ->orderBy() |