LoginSignup
44
42

More than 5 years have passed since last update.

MySQLでテーブル定義を調べる方法

Posted at

MySQLでテーブル定義を調べる方法

  • 特定のテーブル内のカラムに関する情報を表示
SHOW FULL COLUMNS FROM hogehoge

 参考:https://dev.mysql.com/doc/refman/5.6/ja/show-columns.html

  • テーブル構造またはクエリー実行計画に関する情報を取得
DESC hogehoge

 参考:https://dev.mysql.com/doc/refman/5.6/ja/describe.html

  • 指定されたテーブルを作成する CREATE TABLE ステートメントを表示
SHOW CREATE TABLE hogehoge

 参考:https://dev.mysql.com/doc/refman/5.6/ja/show-create-table.html

44
42
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
44
42