## 多键搜索 ~~~ <?php namespace Action; use HY\Action; class Index extends Action { public function Index(){ //实例User表为对象 $User = M("User"); //搜索一个用户 可能user 或者 email中存在关键字 $User->select("post_id", array( "MATCH" => array( "columns" => array("user", "email"), "keyword" => "foo" ) ); // WHERE MATCH (content, title) AGAINST ('foo') } } ~~~