Help Center/ Distributed Database Middleware/ FAQs/ DDM Usage/ What Should I Do If an Error Message Is Returned When I Specify an Auto-Increment Primary Key During Migration?
Updated on 2022-09-16 GMT+08:00

What Should I Do If an Error Message Is Returned When I Specify an Auto-Increment Primary Key During Migration?

Execute the following SQL statement to modify the start value of the auto-increment primary key so that the value is greater than the maximum value of primary keys in existing tables:

ALTER SEQUENCE Database name.SEQ name START WITH New start value