Medoo

开始

Where 语句

查询

Transaction

原生SQL查询

PDO object

Debug

数据库信息

count

获取数据表中的行数

count($table, $where)
count($table, $join, $column, $where)
Return: [number] 行的数量.
返回的是数字类型.
$count = $database->count("account", [
    "gender" => "female"
]);

echo "We have " . $count . " female users.";