作者:dmcm0009 | 来源:互联网 | 2023-08-25 05:00
在指定数据库中:
SELECT
TABLE_SCHEMA '数据库名',
TABLE_NAME '表名'
FROM
information_schema.`COLUMNS`
WHERE
COLUMN_NAME = 'volume' AND TABLE_SCHEMA='amazon_db'
不指定:
SELECT
TABLE_SCHEMA,
TABLE_NAME
FROM
information_schema.`COLUMNS`
WHERE
COLUMN_NAME = 'volume'