I have an order table in my database and need to make the OrderId field entry start from a 5 figure number with an increment of 1. Any ideas how I can do this?
When you make your table, just put these options for your id field:
Data Type: bigint (any integer is ok, but if you start with 5 digits, you better keep it a bigint)
Identity: Yes
Identity Seed: 10000
Identity increment: 1
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.