index方法用于数据集的强制索引操作

index方法为3.2.3版本新增,用于数据集的强制索引操作,例如:

  1. $Model->index('user')->select();

对查询强制使用user索引,user必须是数据表实际创建的索引名称。

原文地址:https://www.cnblogs.com/furuihua/p/11805256.html