select * from user where id in (5230,’45’)
*************************** 1. row ***************************
id: 1
select_type: SIMPLE
table: user
type: ALL
possible_keys: PRIMARY
key: NULL
key_len: NULL
ref: NULL
rows: 501591
Extra: Using where
#不同类型进行比较时,同样会导致索引失效,存在隐时类型转换