企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持知识库和私有化部署方案 广告
whereor() ### 说明 ~~~ Query whereor(string | array $condition, $parameters = array()) ~~~ 与 where 一样使用,不同的是本函数是以 OR 来连接 ### 示例 ~~~ $query = load()->object('query'); $row = $query->from('users', 'u')->where('sex', '1')->whereor('uid', 2)->get(); //生成SQL如下 //SELECT * FROM users AS U WHERE sex = '1' OR uid = '2' LIMIT 1 ~~~