99999久久久久久亚洲,欧美人与禽猛交狂配,高清日韩av在线影院,一个人在线高清免费观看,啦啦啦在线视频免费观看www

熱線電話:13121318867

登錄
2018-10-18 閱讀量: 5147
mysql創(chuàng)建索引有哪些?

>>用于數(shù)據(jù)比較多的時(shí)候;唯一性;會(huì)隨數(shù)據(jù)增加而變化

創(chuàng)建表時(shí)創(chuàng)建索引

語(yǔ)法:create table 表名(屬性名 數(shù)據(jù)類型 [完整性約束條件], ............. [unique | fulltext | spatial]

index | key[別名](屬性名 1[(長(zhǎng)度)] [asc | desc]))

1、創(chuàng)建普通索引>>create table index1(id int,name varchar(20),index(id));

2、創(chuàng)建唯一索引>>create table index2(id int,name varchar(20),unique index index2_id(id asc));

3、創(chuàng)建全文索引>>create table index3(id int,name varchar(20),info varchar(20),fulltext index index3_info(info));

4、創(chuàng)建單列索引>>語(yǔ)法:.....index(id),....

5、創(chuàng)建多列索引>>語(yǔ)法:........index(id,name)......

刪除索引>>drop index 索引名 on 表名;

0.0000
2
關(guān)注作者
收藏
評(píng)論(0)

發(fā)表評(píng)論

暫無(wú)數(shù)據(jù)
推薦帖子