mysql 查询 有某个字段的表
作者:互联网
select table_name from information_schema.columns where column_name='TENANT_ID' and TABLE_SCHEMA='construction_progress';
SELECT table_name from information_schema.`TABLES` where TABLE_SCHEMA='construction_progress'
and TABLE_NAME not in (
select table_name from information_schema.columns where column_name='TENANT_ID' and TABLE_SCHEMA='construction_progress'
)
;
标签:information,name,查询,字段,construction,progress,mysql,TABLE,table 来源: https://www.cnblogs.com/fuerming/p/15557335.html