mysqlテーブル名に基づいて、データベース名、テーブル名、フィールド名、フィールドコメント、データ型を取得
345 ワード
SELECT
table_name ,
column_name ,
COLUMN_TYPE ,
column_default ,
column_comment
FROM
information_schema. COLUMNS
WHERE
LOWER(table_name) = 't_action';
SELECT
TABLE_NAME ,
TABLE_COMMENT
FROM
information_schema.`TABLES`
WHERE
LOWER(table_name) = 't_action';