日期:2014-05-16  浏览次数:20720 次

请问关于两种索引的区别
请问index1(field1,   field2)

index1(field1)
index2(field2)
有什么区别呢?
查询时需要如何与索引配合呢?



------解决方案--------------------
手册中讲得很清楚


index1(field1, field2),多列索引

where field1= 'sth. ' && field2= 'sth '和where field1= 'sth. '有效,
where field2= 'sth '无效
------解决方案--------------------
学习