您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

MYSQL分享:获取缺失主键表信息语句_MySQL

2024/3/6 19:14:00发布19次查看
bitscn.com
mysql分享:获取缺失主键表信息语句
[sql] 
select a.`table_schema` as db_name , a.`table_name` , a.`table_rows` ,a.`engine`  -- , a.*   
from   
information_schema.`tables` a  
left join  information_schema.`table_constraints` b  
    on a.`table_name` = b.`table_name` and a.`table_schema` = b.`table_schema`   
where b.`table_schema` is null   
and a.`table_type` = 'base table'  
and a.`table_schema` not in ('information_schema','test','mysql','performance_schema')  
order by db_name ,a.`table_rows` desc ;
bitscn.com
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product