LoginSignup
3
2

More than 5 years have passed since last update.

特定のカラム名を持つテーブルを洗い出す。

Posted at

複数のデータベースに対して
特定のカラム名を持つテーブルを洗い出す場合のSQL実行分

SELECT table_schema,table_name, column_name FROM information_schema.columns 
WHERE 
column_name = 'カラム名'

 AND (table_schema = 'データベース名' OR table_schema = 'データベース名' OR....
);
3
2
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
3
2