V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
V2EX  ›  tickone  ›  全部回复第 1 页 / 共 1 页
回复总数  1
2022 年 5 月 27 日
回复了 brader 创建的主题 程序员 如何低成本解决模糊搜索问题
可以试试这样查,扫描 name 索引,不是全表扫描,稍微好一点
select * from table where id in (
select id from table where name like '%哈哈%'
)
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4791 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 12ms · UTC 05:38 · PVG 13:38 · LAX 22:38 · JFK 01:38
♥ Do have faith in what you're doing.