zobacz kolumnę EXTRA w tabeli COLUMNS:
select * from COLUMNS where TABLE_SCHEMA='yourschema' and TABLE_NAME='yourtable' and EXTRA like '%auto_increment%'
zobacz kolumnę EXTRA w tabeli COLUMNS:
select * from COLUMNS where TABLE_SCHEMA='yourschema' and TABLE_NAME='yourtable' and EXTRA like '%auto_increment%'