Subject | Re: [ib-support] Adding a primary key |
---|---|
Author | Martijn Tonies |
Post date | 2002-03-07T20:02:59Z |
Hi Jim
any duplicate values in your columns that you're creating the primary key
on.
If this isn't the case, then what is your table DDL? On what columns are you
creating the PK?
Martijn Tonies
InterBase Workbench - the developer tool for InterBase and Firebird
http://www.interbaseworkbench.com
Upscene Productions
http://www.upscene.com
"This is an object-oriented system.
If we change anything, the users object."
> I can not add a primary key to one of my tables. I am using InterbaseAssuming that you have existing rows in the table, make sure you don't have
> Workbench and the constraint editor. It gives me an error like:
> Attempt to
> store duplicate value. (Visible to active transactions) in unique
> index
> RDB$PRIMARY19
>
> What???
any duplicate values in your columns that you're creating the primary key
on.
If this isn't the case, then what is your table DDL? On what columns are you
creating the PK?
Martijn Tonies
InterBase Workbench - the developer tool for InterBase and Firebird
http://www.interbaseworkbench.com
Upscene Productions
http://www.upscene.com
"This is an object-oriented system.
If we change anything, the users object."