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

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -