mysql本身不提供序列机制,但是可以通过函数来模拟实现序列 CREATE TABLE IF NOT EXISTS `sequence` ( `id` ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, `current_value` ) NULL DEFAULT NULL, `increment` ) ', PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB CHARACTER SET =…