📜  如果自动增量 id 用完怎么办 - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:27.188000             🧑  作者: Mango

代码示例1
CREATE TABLE `tbl_new` (
    `id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
    PRIMARY KEY (`id`)
) AUTO_INCREMENT=2200000000;

RENAME TABLE `tbl` TO `tbl_old`, `tbl_new` TO `tbl`;