企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持知识库和私有化部署方案 广告
# 函数原型 ~~~ public function forceIndex($mixIndex, $sType = 'FORCE'); public function ignoreIndex($mixIndex); ~~~ # 用法如下 ~~~ # SELECT `test`.* FROM `test` FORCE INDEX ( nameindex,statusindex ) IGNORE INDEX ( testindex ) WHERE `test`.`id` = 5 database::table ( 'test' ) ->forceIndex('nameindex,statusindex') ->ignoreIndex('testindex') ->where('id','=',5) ->get (); ~~~