ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、视频、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
### max 获得数据表中,值最大的 max($table, $column, $where) * ##### table [string] 表名. * ##### column [string] 查询的字段列. * ##### where (optional) [array] WHERE 条件. max($table, $join, $column, $where) * ##### table [string] 表名. * ##### join [array] 多表查询. * ##### column [string] 字段名. * ##### where (optional) [array] 条件. Return: [number] 返回最大的值. >这个返回数值类型. ~~~ $max = $database->max("account", "age", [ "gender" => "female" ]); echo "The age of oldest female user is " . $max; ~~~