CREATE TABLE vn.ticketComponentTemplate SELECT * FROM vn2008.template_bionic_component; ALTER TABLE `vn`.`ticketComponentTemplate` CHANGE COLUMN `warehouse_id` `warehouseFk` SMALLINT(5) UNSIGNED NOT NULL , CHANGE COLUMN `item_id` `itemFk` INT(11) NOT NULL , CHANGE COLUMN `component_id` `componentFk` INT(10) UNSIGNED NOT NULL;