2012-01-14 58 views

回答

0

下面的鏈接可以幫助你......

How to find all the tables in MySQL with specific column names in them?

請讓我知道櫃面進一步查詢...

+0

非常感謝!這個鏈接給了我提示,我解決它,如下 - >從 information_schema.tables選擇table_schema其中 table_name ='tablename'; – Vijay 2012-01-14 08:40:28

+0

歡迎你,很高興你得到了答案..請接受答案... – 2012-01-14 08:43:20

+0

啊我現在記得...'select * from tables'給出了數據庫中存在的所有表......但是不確定PATH .... – 2012-01-14 08:46:19

1

查找在COLUMNS表中information_schema數據庫。

SELECT `TABLE_SCHEMA`, `TABLE_NAME` 
    from `COLUMNS` 
    WHERE 
     `COLUMN_NAME` = 'YOUR_COLUMN_NAME'; 

你需要特權這一點。或至少SELECT權限Information_schema表。

相關問題