min 最小值
优质
小牛编辑
143浏览
2023-12-01
min
获得某个列中的最小的值
min($table, $column, $where)table [string]
表名.
column [string]
需要查询的列.
where (optional) [array]
WHERE 条件.
table [string]
The table name.
join [array]
Table relativity for table joining.
column [string]
The target column will be calculated.
where (optional) [array]
The WHERE clause to filter records.
$min = $database->min("account", "age", [ "gender" => "male"]);echo "The age of youngest male user is " . $min;