IN()

High Performance My SQL, Third Edition

Consider the followingWHERE clause:

WHERE eye_color IN('brown','blue','hazel')
AND hair_color IN('black','red','blonde','brown')
AND sex IN('M','F')

The optimizer will convert this into 4*3*2 = 24 combinations, and the W
HERE clause will then have to check for each of them.

posted @ 2016-12-23 12:14  papering  阅读(241)  评论(0编辑  收藏  举报