Re: to add table with primary key



On Feb 28, 5:42 am, Bum...@xxxxxxxxx wrote:
create table au_clients (
id numeric(10,0) not null,
name varchar(255) not null,
constraint au_clients_pk primary key (id))
with identity_gap = 10
go

/* default users */

insert into au_clients (name) values ('default')
go

I want that primary key started with 0. in this case i must to write
with identity_gap = 0?

No, you can't do it. Identity values start at 1 and go up. It is not
possible to insert or update
identity values to a negative or zero value.

.