Last
返回最后执行的查询。
last()
返回: [string] 最后的查询字符串。
与 log() 类似,但只返回最后的查询。
$database->select("account", [ "user_name", "email" ], [ "user_id[<]" => 20 ]); $database->insert("account", [ "user_name" => "foo", "email" => "foo@bar.com" ]); echo $database->last(); // INSERT INTO "account" ("user_name", "email") VALUES ('foo', 'foo@bar.com')