Mysql cannot use the column to the right of the index range condition, how can it be optimized?

suppose there is a compound index index_abcd, and the
query statement where a = "" and b = "" and c > "" and d = ""
at this time c > "" is invalid. How to optimize

?
Apr.20,2022

personally don't think it necessary to optimize..
if you must build.. Unless your statement is frequent and there are still many filtered statements with condition = aquib > c, then build idx_abdc

Menu