Medoo

开始

更新日志

Where 语句

查询

聚合

Fetch

事务

原生SQL查询

Raw object

PDO object

Debug

数据库信息

Rand

随机获取数据。

rand($table, $column, $where)
rand($table, $join, $column, $where)

返回数组[array]

$data = $database->rand("account", [
	"user_name",
	"email"
], [
	"user_id[>]" => 100
]);
 
// $data = array(
// 	[0] => array(
// 		"user_name" => "foo",
// 		"email" => "[email protected]"
// 	),
// 	[1] => array(
// 		"user_name" => "cat",
// 		"email" => "[email protected]"
// 	)
// )