문제

I have to start my auto-increment column of my table in SQL Server from 1000. In default it starts from 1. Now I have to customize that.

Is that possible??

도움이 되었습니까?

해결책

I think in create table the syntax is

column_name data_type identity(startingValue(seed), increment)

so that in your case it's

create table table_name ( id int identity(1000 , 1) )

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top