标签:rar ora sql edit 修改 library build -- HERE
SELECT * FROM msg_list WHERE title LIKE ‘%涂山%‘
可以替换为:
SELECT * FROM msg_list WHERE INSTR(title,‘涂山‘) > 0
项目根目录\thinkphp\library\think\db\Builder.php
MsgList::where([
‘title‘ => [‘instr‘,‘涂山‘]
])
->select();
MySQL(Oracle)模糊查询 使用 instr () 替代 like 提升效率
标签:rar ora sql edit 修改 library build -- HERE
原文地址:https://www.cnblogs.com/cxfs/p/13218808.html