Query\QueryBuilder::select_max
Selects the maximum value of a field from a query
Signature
public function select_max(string
$field,
[boolean
$as = FALSE] )
Parameters
$field
—
string
$as
—
boolean
Returns
- Query_Builder
Defined by Interface
QueryBuilderInterface
Test Coverage
Information
- Coverage: 2/2 Lines (100%)
- Tests: 4
- Passed: 4 (100%)
Tests
- [ PASSED ] — MySQLQBTest::testSelectMax
- [ PASSED ] — PgSQLQBTest::testSelectMax
- [ PASSED ] — SQLiteQBTest::testSelectMax
- [ PASSED ] — FirebirdQBTest::testSelectMax