企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持知识库和私有化部署方案 广告
>[danger] where 查询 ~~~ DB::table('users') ->where('id', '=', 1) ->get(); ~~~ + 操作符 ``` >、<、<>、like 等 ``` >[danger] 数组条件 + toSql() 查看执行的sql ~~~ DB::table('users') ->where([ 'id' => 1, 'password' => 123, ]) ->toSql(); ~~~ ~~~ DB::table('users') ->where([ ['id', '>', 1], ['password', '<>', 456], ]) ->toSql(); ~~~