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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Constraints

RE: Constraints

From: Atul Kumar <atul_at_softek.co.in>
Date: Wed, 24 Apr 2002 04:53:26 -0800
Message-ID: <F001.0044D8E0.20020424045326@fatcity.com>


you must ensure uniquness and not null of each value in cells of column BUTIKS_NR -----Original Message-----
Roland.Skoldblom_at_ica.se
Sent: Wednesday, April 24, 2002 5:39 PM
To: Multiple recipients of list ORACLE-L

Hallo,

I am trying to run this script,

ALTER TABLE PBK.K1
  ADD CONSTRAINT idx_rollson PRIMARY KEY (BUTIKS_NR)

but gets the erormessage

ORA-02437: cannot validate (PBK.IDX_ROLLSON) - primary key violated

what can I do to solve this? Please help me. Wouldnt it be enough to have unique values in thefield butiks_nr?

Thanks in advance

Roland

--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author:
  INET: Roland.Skoldblom_at_ica.se

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L

(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Atul Kumar INET: atul_at_softek.co.in Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).
Received on Wed Apr 24 2002 - 07:53:26 CDT

Original text of this message

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