Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to change the auto-increment field start value

Status
Not open for further replies.

wickyd

Technical User
Feb 14, 2002
57
ZA
Hi folx

I have a table with an autoinc data type as the primary index. The table starts at number 1.

I want to change the table so that the first record starts at 20986.

Therefore, I want the table to change from:

NUMBER
1
2
3
4
etc...

and become:

NUMBER
20986
20987
20988
20989
etc...

Thank you.

Kind regards
wickyd
 
Any chance you could post some relevant info like, say, the RDBMS ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Have you tried to create a row with value set to 20985, and then delete this row ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top