->limit()
Описание
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
Заметка
Эта функция не должна вызываться статически.
Since postgres and mysql only really support limit directly - calling this on an unsupported database will emit a PEAR::Error and die.
Пример
Пример 35-1. Setting the Limit
|
Пример 35-2. Resulting SQL
|
Пред. | Начало | След. |
->escape() | Уровень выше | ->orderBy() |