LoginSignup
31
21

More than 5 years have passed since last update.

MYSQLでUNIQUE制約を外す方法

Last updated at Posted at 2015-09-04

カラムに付いているインデックス情報を確認する。

show indexes from agencies;

UNIQUEを外したいカラムのKey_name名を確認する。

以下のコマンドで削除できる。

ALTER TABLE テーブル名 DROP INDEX Key_name名;
31
21
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
31
21