V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  tickone  ›  全部回复第 1 页 / 共 1 页
回复总数  1
2022-05-27 13:23:08 +08:00
回复了 brader 创建的主题 程序员 如何低成本解决模糊搜索问题
可以试试这样查,扫描 name 索引,不是全表扫描,稍微好一点
select * from table where id in (
select id from table where name like '%哈哈%'
)
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1018 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 11ms · UTC 23:38 · PVG 07:38 · LAX 16:38 · JFK 19:38
Developed with CodeLauncher
♥ Do have faith in what you're doing.