sql - Oracle: Errors Creating A Table With A Foreign Key -
i'm new oracle. i'm trying create table foreign key, keep getting cryptic error message:
ora-00907: missing right parenthesis
for:
create table purchase_history ( purchase_number varchar(16) not null, credit_enabled char(1) not null check (credit_enabled in ('t','f')), constraint fk_customers foriegn key (customer_id) references customers(customer_id) ); i'm not seeing missing parenthesis. i'm guessing else going on. i've googled around on examples creating tables foreign keys. found couple of different styles syntax , tried few no joy.
how need change statement above?
thanks much
steve
start with:
foriegn -> foreign
Comments
Post a Comment