版本: v2.6.0
min
回傳指定欄位的最小值。
min($table, $column, $where)
min($table, $join, $column, $where)
回傳值
[mixed] 回傳指定欄位中的最小值。
$min = $database->min("account", "age", [
"gender" => "male"
]);
echo "最年輕男性使用者的年齡為 {$min}";