时间:2021-07-01 10:21:17 帮助过:5人阅读
select table_schema, table_name from information_schema.tables where table_name not in (select distinct table_name from information_schema.columns where column_key = "PRI") AND table_schema not in (‘mysql‘, ‘information_schema‘, ‘sys‘, ‘performation_schema‘);
查询mysql没有主键的表
标签:not column mat name sharp sys and rom table