mysql optimization - Will the mysql like statement cause a full table scan?
習慣沉默
習慣沉默 2017-05-24 11:34:37
0
3
1148

select id from t where name like '%abc%'

習慣沉默
習慣沉默

reply all(3)
滿天的星座

Fuzzy query, even if you have an index, you don’t know whether there are these three letters in the index or whether they are arranged in this position or in this row. . .

黄舟

Not necessarily depends on the query conditions.
If it matches the left prefix, you can use the index
For example like abc%

黄舟

Same as above, try not to blur like in sql. If the amount of data is large, it will be messed up.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template