ThinkChat🤖让你学习和工作更高效,注册即送10W Token,即刻开启你的AI之旅 广告
## 多键搜索 ~~~ <?php namespace Action; use HY\Action; class Index extends Action { public function Index(){ //实例User表为对象 $User = S("User"); //搜索一个用户 可能user 或者 email中存在关键字 $User->select("post_id", array( "MATCH" => array( "columns" => array("user", "email"), "keyword" => "foo" ) ); // WHERE MATCH (content, title) AGAINST ('foo') } } ~~~