重庆分公司
重庆分公司
MySQL查询数据库中没有主键的表
-
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','information_schema','performance_schema'
-
);
分享标题:MySQL查询数据库中没有主键的表
链接分享:
http://cxhlcq.cn/article/pdhgpg.html
-
在线咨询

微信咨询


电话咨询
-
028-86922220(工作日)
18980820575(7×24)
-

提交需求
-

返回顶部