LoginSignup
0
0

More than 3 years have passed since last update.

[MySQL] 型を変更する方法

Last updated at Posted at 2021-01-16

MySQLにログインする

以下で詳しく説明しています。
https://qiita.com/momo1010/items/d72d2d567c0768ce2d0d

データベースを選択する

USE データベース名;

型を変更する

ALTER TABLE テーブル名 MODIFY カラム名 新しい型

NOT NULL の場合は以下です。

ALTER TABLE テーブル名 MODIFY カラム名 新しい型 NOT NULL;

変更できたか確認する

DESCRIBE テーブル名;
0
0
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
0
0