首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > Mysql >

请教关于两种索引的区别

2012-03-30 
请问关于两种索引的区别请问index1(field1,field2)与index1(field1)index2(field2)有什么区别呢?查询时需

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

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



[解决办法]
手册中讲得很清楚


index1(field1, field2),多列索引

where field1= 'sth. ' && field2= 'sth '和where field1= 'sth. '有效,
where field2= 'sth '无效
[解决办法]
学习

热点排行