0
表1重寫SQL表結構
CREATE TABLE `test`.`table_1` (
`id` INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
`name` VARCHAR(45),
PRIMARY KEY (`id`)
)
ENGINE = InnoDB;
表2
CREATE TABLE `test`.`table_2` (
`id` INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
`name` VARCHAR(256) NOT NULL,
`number` INTEGER UNSIGNED NOT NULL,
PRIMARY KEY (`id`)
)
ENGINE = InnoDB;
,我想要得到的結果是: 表1和表2預期是一樣的,表1在我的同事工作區中,我想將其更改爲表2 不丟失數據