首页 > 其他 > 详细

IN()

时间:2016-12-23 14:21:14      阅读:178      评论:0      收藏:0      [点我收藏+]

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.

IN()

原文:http://www.cnblogs.com/yuanjiangw/p/6214352.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!