Help Center/ Distributed Database Middleware/ User Guide (ME-Abu Dhabi Region)/ FAQs/ DDM Usage/ What Should I Do If an Error Message Is Returned After I Specify an Auto-Increment Primary Key?
Updated on 2022-02-22 GMT+08:00

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

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 Schema name.SEQ name START WITH New start value