DROP PROCEDURE IF EXISTS dummy_proc; DELIMITER $$ CREATE PROCEDURE dummy_proc() BEGIN DECLARE CONTINUE HANDLER FOR 1060 BEGIN END; ALTER TABLE `table_name` ADD `add_column_name` int(11) DEFAULT NULL AFTER `column_name`; END; $$ DELIMITER ; CALL dummy_proc(); DROP PROCEDURE dummy_proc;