Get Started

Upgrade

Where Syntax

Query

Aggregation

Fetch

Transaction

Management

Advanced

Raw object

PDO object

Debug

Information

version: 2.1.12

min

Get the minimum value of the column.

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

echo "The age of the youngest male user is " . $min;