📜  mysql 选择所有具有字段名称的表 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:29.654000             🧑  作者: Mango

代码示例1
SELECT DISTINCT
    TABLE_NAME
FROM
    INFORMATION_SCHEMA.COLUMNS
WHERE
    COLUMN_NAME IN('column1', 'column2')
    AND TABLE_SCHEMA = 'schema_name';