LoginSignup
0
0

More than 5 years have passed since last update.

【MYSQL】指定したカラム名をもつテーブルを検索する

Last updated at Posted at 2018-10-05

調べたい時いつも忘れる。informationスキーマから調べられる。

SELECT
  table_name, 
  column_name 
FROM information_schema.columns 
WHERE 
  column_name like '%clumn_name%' 
AND 
  table_schema = 'db_name';
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