Get Started

Upgrade

Where Syntax

Query

Aggregation

Fetch

Transaction

Management

Advanced

Raw object

PDO object

Debug

Information

version: 2.1.12

max

Get the maximum value of the column.

max($table, $column, $where)
max($table, $join, $column, $where)
Return: [string] The maximum number of the column.
$max = $database->max("account", "age", [
	"gender" => "female"
]);

echo "The age of the oldest female user is " . $max;