• ADADADADAD

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

    mysql数据库 时间:2024-12-03 12:12:36

    作者:文/会员上传

    简介:

    select table_schema,table_name from information_schema.tables
    where (table_schema,table_name) not in(
    select distinct table_schema,table_name from information

    以下为本文的正文内容,内容仅供参考!本站为公益性网站,复制本文以及下载DOC文档全部免费。


      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查询数据库中没有主键的表.docx

    将本文的Word文档下载到电脑

    推荐度:

    下载
    热门标签: mysql中没数据库