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: Create Table

Re: Create Table

From: Ngkpo John <paulkcng_at_netvigator.com>
Date: 1998/07/09
Message-ID: <Pine.SOL.3.96.980709110754.3300A-100000@imsnispc01.netvigator.com>#1/1

It looks like the constraint name cannot use table object name but can be same as coulmn name since the following statement works fine.

create table bb ( cc int, b int ,
constraint cc primary key (cc)
)

On Wed, 8 Jul 1998, Tony Rogerson wrote:

> Not sure of the compliance, but the reason the MSSQL (1) fails is that you cant have a primary key constraint name the same name as
> another object in the database.
>
> create table a ( a int, b int ,
> constraint pk_a primary key (a)
> )
>
> would work.
> --
> Hope the above helps,
>
> Tony Rogerson
> Torver Computer Consultants Ltd.
>
>
>
>
>
Received on Thu Jul 09 1998 - 00:00:00 CDT

Original text of this message

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