I\'m converting a db from postgres to mysql.
Since i cannot find a tool that does the trick itself, i\'m going to convert all postgres sequences to autoincrement id
Kind of a hack, but try this:
select 'select ''' || relname || ''' as sequence, last_value from ' || relname || ' union' FROM pg_catalog.pg_class c WHERE c.relkind IN ('S','');
Remove the last UNION and execute the result