这样做是否可以起到优化作用
举个例子
id atypeid btypeid name
1 9 10 红色毛巾
2 9 11 尼龙毛巾
3 9 12 丝质毛巾
4 10 19 黑色袜子
我想找出红色毛巾的东西
select * from tb where btypeid=10
select * from tb where atypeid=9 and btypeid=10
第二句找出红色毛巾的速度 是否比 第一句更快呢?
[解决办法]