33
22

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

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名;
33
22
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
33
22

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?