Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Can I add primary key constraint?

Re: Can I add primary key constraint?

From: Sybrand Bakker <postbus_at_sybrandb.demon.nl>
Date: 2000/07/05
Message-ID: <962771328.25225.0.pluto.d4ee154e@news.demon.nl>#1/1

The error just means your data is shitty. You'll need to resolve that first.

Hth,

Sybrand Bakker, Oracle DBA

"Carfield Yim" <carfield_at_my-deja.com> wrote in message news:8juad8$edg$1_at_nnrp1.deja.com...
> When I use the following SQL command to add primary key
> constraint:
>
> alter table deletelog add constraint pk_deletelog primary key
> (type, id) using index tablespace renren_idx
>
> I receive the following error message:
>
> SQL> alter table deletelog add constraint pk_deletelog primary
> key(type, id);
> alter table deletelog add constraint pk_deletelog primary key
> (type, id) using index
> *
> ERROR at line 1:
> ORA-02437: cannot enable (RENREN.PK_DELETELOG) - primary key
> violated
>
> How can I add primary key constraint?
>
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
Received on Wed Jul 05 2000 - 00:00:00 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US