ALTER TABLE document MODIFY COLUMN document_id INT auto_increment
SELECT AUTO_INCREMENT FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'database_name' AND TABLE_NAME = 'table_name';
ALTER TABLE users AUTO_INCREMENT=1001;
ALTER TABLE foobar AUTO_INCREMENT=10;
SELECT `AUTO_INCREMENT`
FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_SCHEMA = 'DatabaseName'
AND TABLE_NAME = 'TableName';