Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Sybase > to add table wi...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 2409 of 2504
Post > Topic >>

to add table with primary key

by Bumsys@[EMAIL PROTECTED] Feb 28, 2008 at 04:42 AM

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?
 




 3 Posts in Topic:
to add table with primary key
Bumsys@[EMAIL PROTECTED]   2008-02-28 04:42:40 
Re: to add table with primary key
bret@[EMAIL PROTECTED]   2008-02-28 15:34:12 
Re: to add table with primary key
Bumsys@[EMAIL PROTECTED]   2008-02-28 23:51:16 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan13V112 Sat Jul 5 18:13:50 CDT 2008.