I know this won\'t work, tried it in various forms and failed all times. What is the simplest way to achieve the following result?
ALTER TABLE XYZ AUTO_INCRE
Personally I'd probably use either a shell script or a little C#/C++ application or PHP/Ruby/Perl script to do this in 2 queries:
SELECT MAX(ID) FROM ABC;
ALTER TABLE XYZ AUTO_INCREMENT =
Obviously being careful that the new auto increment won't cause any key clashes with existing data in the XYZ
table.