久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長(zhǎng)資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      mysql索引類型介紹

      mysql索引類型介紹

      索引類型介紹:

      主鍵索引

      primary key() 要求關(guān)鍵字不能重復(fù),也不能為null,同時(shí)增加主鍵約束 主鍵索引定義時(shí),不能命名

      唯一索引

      unique index() 要求關(guān)鍵字不能重復(fù),同時(shí)增加唯一約束

      普通索引

      index() 對(duì)關(guān)鍵字沒有要求

      全文索引

      fulltext key() 關(guān)鍵字的來源不是所有字段的數(shù)據(jù),而是字段中提取的特別關(guān)鍵字

      關(guān)鍵字:可以是某個(gè)字段或多個(gè)字段,多個(gè)字段稱為復(fù)合索引。

      實(shí)例:

      建表: creat table student(     stu_id int unsigned not null auto_increment,     name varchar(32) not null default '',     phone char(11) not null default '',     stu_code varchar(32) not null default '',     stu_desc text,     primary key ('stu_id'),     //主鍵索引     unique index 'stu_code' ('stu_code'), //唯一索引     index 'name_phone' ('name','phone'),  //普通索引,復(fù)合索引     fulltext index 'stu_desc' ('stu_desc'), //全文索引) engine=myisam charset=utf8;  更新: alert table student    add primary key ('stu_id'),     //主鍵索引     add unique index 'stu_code' ('stu_code'), //唯一索引     add index 'name_phone' ('name','phone'),  //普通索引,復(fù)合索引     add fulltext index 'stu_desc' ('stu_desc'); //全文索引刪除: alert table sutdent     drop primary key,     drop index 'stu_code',     drop index 'name_phone',     drop index 'stu_desc';

      推薦教程:mysql教程

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號(hào)-2    滬公網(wǎng)安備31011702889846號(hào)