$database->debug()->select("book", "*", ["ORDER" => ["date" => "DESC"]]);
//SELECT * FROM `book` ORDER BY `date` DESC
$database->debug()->select("book", "*", ["view" => "1","ORDER" => ["date" => "DESC"]]);
//SELECT * FROM `book` WHERE `view` = '1' ORDER BY `date` DESC
$database->debug()->select("book", "*", [
"AND" => [
"type" => $_GET["type"],
"view" => "1"
],"ORDER" => ["date" => "DESC"]
]);
//SELECT * FROM `book` WHERE (`type` = '1' AND `view` = '1') ORDER BY `date` DESC
LIMIT
$datas = $database->select("dede_addonimages", [
"aid",
"taobaoid"
]
,[
"OR" =>[
"tklupdate[<]"=>"$isend",
"tklupdate"=>0
]
,
"ORDER" => ["aid" => "DESC"], "LIMIT" => [0,5]
]
);