MySQL

SQL文

select table_name from information_schema.columns where column_name = '確認したいカラム' and table_schema = '対象データベース';

実行例

mysql> select table_name from information_schema.columns where column_name = 'user' and table_schema = 'mysql';
+--------------+
| table_name   |
+--------------+
| columns_priv |
| db           |
| procs_priv   |
| proxies_priv |
| tables_priv  |
| user         |
+--------------+
6 rows in set (0.00 sec)




トップ   編集 凍結 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2022-06-30 (木) 01:40:11