虚位以待(AD)
虚位以待(AD)
首页 > 数据库 > Mysql数据库 > MySQL统计数据库表中是否有自增长列

MySQL统计数据库表中是否有自增长列
类别:Mysql数据库   作者:码皇   来源:jn1705的专栏     点击:

MySQL统计数据库表中是否有自增长列 *统计数据库表中是否有自增长列* SELECTdistincttable_nameFROMINFORMATION_SCHEMA columns d where d table_name in(select table_name from INFORMATION_SCHEMA tab
MySQL统计数据库表中是否有自增长列  
    /*统计数据库表中是否有自增长列*/SELECTdistincttable_nameFROMINFORMATION_SCHEMA.columns d where d.table_name in(select table_name from INFORMATION_SCHEMA.tables where table_schemanot in ('
    INFORMATION_SCHEMA'
    ,'
    performance_schema'
    ,'
    dmc_db'
    ,'
    mysql'
    )) and d.extra = '
    auto_increment'
    )

 


相关热词搜索: MySQL 统计 数据库