2012-01-14 60 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表。

相关问题