久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放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. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      mysql怎么刪除唯一索引

      刪除方法:1、利用alter table語句刪除,語法為“alter table 數(shù)據(jù)表名 drop index 要刪除的索引名;”;2、利用drop index語句刪除,語法為“drop index 要刪除的索引名 on 數(shù)據(jù)表名;”。

      mysql怎么刪除唯一索引

      本教程操作環(huán)境:windows10系統(tǒng)、mysql8.0.22版本、Dell G3電腦。

      mysql怎么刪除唯一索引

      方法一: ALTER TABLE 語句

       alter table 數(shù)據(jù)表名 drop index 刪除的索引名;

      根據(jù) ALTER TABLE 語句的語法可知,該語句也可以用于刪除索引。具體使用方法是將 ALTER TABLE 語句的語法中部分指定為以下子句中的某一項。

      DROP PRIMARY KEY:表示刪除表中的主鍵。一個表只有一個主鍵,主鍵也是一個索引。

      DROP INDEX index_name:表示刪除名稱為 index_name 的索引。

      DROP FOREIGN KEY fk_symbol:表示刪除外鍵。

      示例如下:

      alter table news drop index title_sy;

      mysql怎么刪除唯一索引

      方法二: 使用 DROP INDEX 語句

      drop index 索引名 on 數(shù)據(jù)表名;

      示例如下:

      drop index http_sy on news;

      mysql怎么刪除唯一索引

      推薦學(xué)習(xí):mysql視頻教程

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