Help us understand the problem. What is going on with this article?

データベースの中から特定のカラムをSELECTする

More than 1 year has passed since last update.

このカラム、他にどこのテーブルで使ってたっけ:rolling_eyes:
と思った時に使えるSQLです。

select table_name,column_name user_tab_columns
where column_name='検索するカラム名';

table_name = テーブル名
column_name = カラム名
user_tab_columns = データベースの中にあるカラム

:point_up:使っているDBタイプで少し変わります

Oracle
user_tab_columns

MySQL
information_schema.cloumns

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away