国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

mysql普通索引與復(fù)合索引
PHP中文網(wǎng)
PHP中文網(wǎng) 2017-04-17 16:22:08
0
1
721

索引可以是單列索引,也可以是多列索引。
(1)單列索引就是常用的一個列字段的索引,常見的索引。
(2)多列索引就是含有多個列字段的索引
alter table student add index sy(name,age,score);
索引sy就為多列索引,多列索引在以下幾中情況下才能有效:
select * from student where name='jia' and age>='12' //where條件中含有索引的首列字段和

那請問 假如 我做了 name 和 age的單獨索引了 假如 執(zhí)行select * from student where name='jia' and age>='12' 這個語句 會使用兩次索引嗎 name age的 那我還需要單獨建第三個 多列索引 嗎

PHP中文網(wǎng)
PHP中文網(wǎng)

認證高級PHP講師

reply all(1)
小葫蘆

Just make two single column indexes. If you don't know how to use the index, just explain it.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template