複数のデータベースに対して
特定のカラム名を持つテーブルを洗い出す場合のSQL実行分
SELECT table_schema,table_name, column_name FROM information_schema.columns
WHERE
column_name = 'カラム名'
AND (table_schema = 'データベース名' OR table_schema = 'データベース名' OR....
);
More than 5 years have passed since last update.
複数のデータベースに対して
特定のカラム名を持つテーブルを洗い出す場合のSQL実行分
SELECT table_schema,table_name, column_name FROM information_schema.columns
WHERE
column_name = 'カラム名'
AND (table_schema = 'データベース名' OR table_schema = 'データベース名' OR....
);
Register as a new user and use Qiita more conveniently