Get Started

Upgrade

Where Syntax

Query

Aggregation

Fetch

Transaction

Advanced

Raw object

PDO object

Debug

Information

version: 1.5.7

max

Get the maximum value for the column

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

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