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://bzwzjz.com/article/pdhgpg.html

其他资讯

Copyright © 2007-2020 广东宝晨空调科技有限公司 All Rights Reserved 粤ICP备2022107769号
友情链接: 成都网站建设 成都网站设计 企业网站制作 成都网站设计 成都网站制作公司 成都响应式网站建设公司 网站设计 移动网站建设 成都定制网站建设 网站设计 营销网站建设 LED网站设计方案 重庆网站建设 成都网站制作 成都网站制作 网站建设 企业网站建设 手机网站制作 成都网站制作 成都品牌网站设计 营销网站建设 手机网站设计