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查询数据库中没有主键的表
URL网址:http://www.kmzsk.com/article/pdhgpg.html

其他资讯

Copyright © 2026 昆明姝彩聂商贸有限公司 All Rights Reserved 滇ICP备2025072963号-9
友情链接: 成都网站制作 网站制作公司 手机网站建设 网站建设公司 网站建设方案 重庆外贸网站建设 营销网站建设 手机网站制作 成都企业网站设计 手机网站制作设计 成都网站制作 定制网站建设多少钱 成都网站建设 品牌网站建设 成都网站建设公司 成都网站制作 移动手机网站制作 自适应网站设计 高端网站设计 LED网站设计方案 宜宾网站设计 商城网站建设