Get Started

Medoo 1.2

Where Syntax

Query

Fetch

Transaction

Advanced

PDO object

Debug

Information

version: 1.2.1

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;