create or replace doesnt work for tables.
I'd recommend:
Begin
execute immediate 'Drop table PRODUCT';
Exception when others then null;
End;
/
create or replace table PRODUCT (
upc varchar(15) primary key,
description varchar(20) not null,
linespeed number(5) not null,
price_plan number(5)not null,
product_count number(3) not null,
published char(1) default 'N',
constraint PRODUCT_UQ UNIQUE (product_count),
constraint published_chk CHECK(published IN('Y','N')),
constraint linespeed_chk CHECK(linespeed IN(256,512,1000,2000))
);
Main Topics
Browse All Topics





by: PeeweePosted on 2005-08-25 at 07:04:23ID: 14752052
will create or replace work with tables?