MySQL查询数据库中没有主键的表

  1. select table_schema,table_name from information_schema.tables
  2. where (table_schema,table_name) not in(
  3.     select distinct table_schema,table_name from information_schema.columns where COLUMN_KEY='PRI'    
  4. )
  5. and table_schema not in (
  6.     'sys','MySQL','information_schema','performance_schema'
  7. );


新闻名称:MySQL查询数据库中没有主键的表
标题来源:http://hxwzsj.com/article/pdhgpg.html

其他资讯

Copyright © 2025 青羊区翔捷宏鑫字牌设计制作工作室(个体工商户) All Rights Reserved 蜀ICP备2025123194号-14
友情链接: 品牌网站建设 成都网站建设推广 成都网站设计 重庆网站设计 成都网站设计 外贸网站建设 重庆网站建设 成都网站建设 古蔺网站建设 重庆企业网站建设 重庆外贸网站建设 成都网站建设公司 做网站设计 网站设计 成都网站建设 成都网站设计 成都响应式网站建设 商城网站建设 成都网站建设 响应式网站设计 LED网站设计方案 定制网站建设