1 2 3 4 5 6 7 |
select table_schema,table_name from information_schema.tables where (table_schema,table_name) not in( select distinct table_schema,table_name from information_schema.columns where COLUMN_KEY='PRI' ) and table_schema not in ( 'sys','mysql','wechat','information_schema','performance_schema' #排除系统库和你要排除的库 ); |
- 本文固定链接: https://www.yoyoask.com/?p=1828
- 转载请注明: shooter 于 SHOOTER 发表