采用了一个笨办法
select name from users where name='李大军' and id>200000000 and id<210000000
依次递增id数字来找到了信息。
select name from users where name='李大军' and id>200000000 and id<210000000
依次递增id数字来找到了信息。
如果对表中的数据准确性要求不是很高,执行查询的频率远大于更新操作建议修改表引擎类型为
myisam引擎,并对name字段添加全文索引 ,再设置 降低UPDATE优先级,设置查询优先。
create index idx_name on uses(name);
create index idx_name on users(name);