You can use something like :
SELECT c.table_schema, c.table_name, c.column_name, c.column_type, t.auto_increment FROM information_schema.columns c INNER JOIN information_schema.tables t using(table_schema, table_name) WHERE c.extra = 'auto_increment';
to identify auto_increment columns...
Activity
koleo commentedon Apr 17, 2015
You can use something like :
to identify auto_increment columns...