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

Home -> Community -> Usenet -> c.d.o.misc -> Re: how to delete a primary key constraint?

Re: how to delete a primary key constraint?

From: skv <skv_at_kpbank.ru>
Date: Mon, 21 Dec 1998 13:24:26 +0700
Message-ID: <75kouv$p3k$1@home.kpbank.ru>


Martin Hilpert пишет в сообщении <367D48CB.7FE0147A_at_framesoft.com> ...
>Can somebody tell me the syntax of how to delete a primary key
>constraint?
>I tried
> delete from MYTABLE constraint
>but this raises some other constraint errors that I don't want to
>remove.
>I just want to remove the primary key constraint of ID_COLUMN of
>MYTABLE.
    ALTER TABLE mytable DROP PRIMARY KEY; or

    ALTER TABLE mytable DROP CONSTRAINT constraint_name;

Regards


         Konstantin V. Sartakov
                Kuzbassprombank
                       Kemerovo
                         Russia
           mailto:skv_at_kpbank.ru



Received on Mon Dec 21 1998 - 00:24:26 CST

Original text of this message

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