欢迎投稿

今日深度:

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

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


/*统计数据库表中是否有自增长列*/

SELECT

distinct

table_name

FROM

INFORMATION_SCHEMA.columns d where d.table_name in(select table_name from INFORMATION_SCHEMA.tables where table_schema

not in ('INFORMATION_SCHEMA','performance_schema','dmc_db','mysql')) and d.extra = 'auto_increment')

www.htsjk.Com true http://www.htsjk.com/shujukunews/214.html NewsArticle MySQL统计数据库表中是否有自增长列 /*统计数据库表中是否有自增长列*/ SELECT distinct table_name FROM INFORMATION_SCHEMA.columns d where d.table_name in(select table_name from INFORMATION_SCHEMA.tables where table_s...
评论暂时关闭