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 > primary key
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 2423 of 2544
Post > Topic >>

primary key

by Bumsys@[EMAIL PROTECTED] Mar 13, 2008 at 06:25 AM

alter table au_versions add client_id smallint not null

alter table au_versions add CONSTRAINT au_versions_pk primary key
(application_id, backupno, name, path, client_id)

I need to add not null column in db that then add primary key. But
when i run

alter table au_versions add client_id smallint not null

I have error.

Error: ALTER TABLE 'au_versions' failed. Default clause is required in
order to add non-NULL column 'client_id'.

How can I add not null column to db that then add primary key?
 




 2 Posts in Topic:
primary key
Bumsys@[EMAIL PROTECTED]   2008-03-13 06:25:05 
Re: primary key
bret@[EMAIL PROTECTED]   2008-03-13 08:19:16 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Wed Oct 15 12:42:18 CDT 2008.