index advisor skip columns in if clause
select * from actor where actor_id = 1 order by if(first_name="PENELOPE", last_name, "") desc
Showing
想要评论请 注册 或 登录
Fork自 Xiaomi / soar
select * from actor where actor_id = 1 order by if(first_name="PENELOPE", last_name, "") desc