Query\QueryBuilder::limit
Set a limit on the current sql statement
Signature
public function limit(int
$limit,
[boolean
$offset = FALSE] )
Parameters
$limit
—
int
$offset
—
boolean
Returns
- Query_Builder
Defined by Interface
QueryBuilderInterface
Test Coverage
Information
- Coverage: 3/3 Lines (100%)
- Tests: 68
- Passed: 68 (100%)
Tests
- [ PASSED ] — MySQLQBTest::testQueryExplain
- [ PASSED ] — MySQLQBTest::testGetLimit
- [ PASSED ] — MySQLQBTest::testGetLimitSkip
- [ PASSED ] — MySQLQBTest::testGetWhere
- [ PASSED ] — MySQLQBTest::testSelectWhereGet
- [ PASSED ] — MySQLQBTest::testSelectGet
- [ PASSED ] — MySQLQBTest::testSelectFromLimitGet
- [ PASSED ] — MySQLQBTest::testSelectWhereGet2
- [ PASSED ] — MySQLQBTest::testGroup
- [ PASSED ] — MySQLQBTest::testOrGroup
- [ PASSED ] — MySQLQBTest::testOrNotGroup
- [ PASSED ] — MySQLQBTest::testGroupCamelCase
- [ PASSED ] — MySQLQBTest::testOrderBy
- [ PASSED ] — MySQLQBTest::testOrderByRandom
- [ PASSED ] — MySQLQBTest::testGroupBy
- [ PASSED ] — MySQLQBTest::testOrWhere
- [ PASSED ] — MySQLQBTest::testCountAllResults2
- [ PASSED ] — PgSQLQBTest::testQueryExplain
- [ PASSED ] — PgSQLQBTest::testGetLimit
- [ PASSED ] — PgSQLQBTest::testGetLimitSkip
- [ PASSED ] — PgSQLQBTest::testGetWhere
- [ PASSED ] — PgSQLQBTest::testSelectWhereGet
- [ PASSED ] — PgSQLQBTest::testSelectGet
- [ PASSED ] — PgSQLQBTest::testSelectFromLimitGet
- [ PASSED ] — PgSQLQBTest::testSelectWhereGet2
- [ PASSED ] — PgSQLQBTest::testGroup
- [ PASSED ] — PgSQLQBTest::testOrGroup
- [ PASSED ] — PgSQLQBTest::testOrNotGroup
- [ PASSED ] — PgSQLQBTest::testGroupCamelCase
- [ PASSED ] — PgSQLQBTest::testOrderBy
- [ PASSED ] — PgSQLQBTest::testOrderByRandom
- [ PASSED ] — PgSQLQBTest::testGroupBy
- [ PASSED ] — PgSQLQBTest::testOrWhere
- [ PASSED ] — PgSQLQBTest::testCountAllResults2
- [ PASSED ] — SQLiteQBTest::testQueryExplain
- [ PASSED ] — SQLiteQBTest::testGetLimit
- [ PASSED ] — SQLiteQBTest::testGetLimitSkip
- [ PASSED ] — SQLiteQBTest::testGetWhere
- [ PASSED ] — SQLiteQBTest::testSelectWhereGet
- [ PASSED ] — SQLiteQBTest::testSelectGet
- [ PASSED ] — SQLiteQBTest::testSelectFromLimitGet
- [ PASSED ] — SQLiteQBTest::testSelectWhereGet2
- [ PASSED ] — SQLiteQBTest::testGroup
- [ PASSED ] — SQLiteQBTest::testOrGroup
- [ PASSED ] — SQLiteQBTest::testOrNotGroup
- [ PASSED ] — SQLiteQBTest::testGroupCamelCase
- [ PASSED ] — SQLiteQBTest::testOrderBy
- [ PASSED ] — SQLiteQBTest::testOrderByRandom
- [ PASSED ] — SQLiteQBTest::testGroupBy
- [ PASSED ] — SQLiteQBTest::testOrWhere
- [ PASSED ] — SQLiteQBTest::testCountAllResults2
- [ PASSED ] — FirebirdQBTest::testQueryExplain
- [ PASSED ] — FirebirdQBTest::testGetLimit
- [ PASSED ] — FirebirdQBTest::testGetLimitSkip
- [ PASSED ] — FirebirdQBTest::testGetWhere
- [ PASSED ] — FirebirdQBTest::testSelectWhereGet
- [ PASSED ] — FirebirdQBTest::testSelectGet
- [ PASSED ] — FirebirdQBTest::testSelectFromLimitGet
- [ PASSED ] — FirebirdQBTest::testSelectWhereGet2
- [ PASSED ] — FirebirdQBTest::testGroup
- [ PASSED ] — FirebirdQBTest::testOrGroup
- [ PASSED ] — FirebirdQBTest::testOrNotGroup
- [ PASSED ] — FirebirdQBTest::testGroupCamelCase
- [ PASSED ] — FirebirdQBTest::testOrderBy
- [ PASSED ] — FirebirdQBTest::testOrderByRandom
- [ PASSED ] — FirebirdQBTest::testGroupBy
- [ PASSED ] — FirebirdQBTest::testOrWhere
- [ PASSED ] — FirebirdQBTest::testCountAllResults2