hacer un campo auto_increment mysql
ALTER TABLE document MODIFY COLUMN document_id INT auto_increment
Unsightly Unicorn
ALTER TABLE document MODIFY COLUMN document_id INT auto_increment
ALTER TABLE tbname MODIFY COLUMN columname smallint(5) auto_increment
ALTER TABLE tbl_access ADD COLUMN `access_id` int(10) NOT NULL PRIMARY KEY AUTO_INCREMENT FIRST