mysql: how do i start auto increment from a specific point?

前端 未结 3 1053
予麋鹿
予麋鹿 2020-12-01 07:28
CREATE TABLE `batchinfo` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `datapath` mediumtext,
  `analysistime` varchar(50) DEFAULT NULL,
  `reporttime` varchar(50)          


        
3条回答
  •  旧时难觅i
    2020-12-01 08:04

    I don't know how to do it from the CREATE statement, but after that you can do this:

    ALTER TABLE `batchinfo` AUTO_INCREMENT = 20000;
    

提交回复
热议问题