Home Database Mysql Tutorial MySQL统计数据库表中是否有自增长列_MySQL

MySQL统计数据库表中是否有自增长列_MySQL

Jun 01, 2016 pm 01:29 PM
Database Table statistics

bitsCN.com

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')
Copy after login

 


bitsCN.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to implement data statistics and analysis in uniapp How to implement data statistics and analysis in uniapp Oct 24, 2023 pm 12:37 PM

How to implement data statistics and analysis in uniapp

How to use SQL statements for data aggregation and statistics in MySQL? How to use SQL statements for data aggregation and statistics in MySQL? Dec 17, 2023 am 08:41 AM

How to use SQL statements for data aggregation and statistics in MySQL?

How to quickly build a statistical chart system under the Vue framework How to quickly build a statistical chart system under the Vue framework Aug 21, 2023 pm 05:48 PM

How to quickly build a statistical chart system under the Vue framework

Implementation of linear and pie chart functions in Vue statistical charts Implementation of linear and pie chart functions in Vue statistical charts Aug 19, 2023 pm 06:13 PM

Implementation of linear and pie chart functions in Vue statistical charts

How to use MySQL's COUNT function to count the number of rows in a data table How to use MySQL's COUNT function to count the number of rows in a data table Jul 25, 2023 pm 02:09 PM

How to use MySQL's COUNT function to count the number of rows in a data table

Use Google Analytics to count website data in Beego Use Google Analytics to count website data in Beego Jun 22, 2023 am 09:19 AM

Use Google Analytics to count website data in Beego

Steps of statistical analysis Steps of statistical analysis Jun 28, 2023 pm 03:27 PM

Steps of statistical analysis

Do you know how to count people in excel? Do you know how to count people in excel? Mar 20, 2024 pm 01:30 PM

Do you know how to count people in excel?

See all articles