一个update如何加强制索引
update a set id=22 where id=1 and time='2332-03-23'
我用explain update a set id=22 where id=1 and time='2332-03-23'是走不通的 , mysql不支持的
1 问 在update可以加强制索引马
2 如果能加, 问该如何加?
update a set id=22 where id=1 and time='2332-03-23'
我用explain update a set id=22 where id=1 and time='2332-03-23'是走不通的 , mysql不支持的
1 问 在update可以加强制索引马
2 如果能加, 问该如何加?
2 如果能加, 问该如何加?--------------1、可以
2、直接在表名后面加 force index(索引名)