📜  mariadb 搜索列 - SQL 代码示例

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

代码示例1
select tab.table_schema as database_name,
    tab.table_name
from information_schema.tables as tab
    inner join information_schema.columns as col
        on col.table_schema = tab.table_schema
            and col.table_name = tab.table_name
            and column_name = 'your column name'
where tab.table_type = 'BASE TABLE'
order by tab.table_schema,
    tab.table_name;