Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ora-00906 missing left parenthesis

AravindhKJan 30 2012 — edited Jan 30 2012
Hi,

I am getting "ORA-00906 missing left parenthesis" error while creating the foreign key on city_name column in the t_friends table.

1) Parent table:

create table t_city
(
city_name varchar2(60) primary key
)

2) child table:

create table t_friends
(
friend_name varchar2(30) not null,
city_name varchar2(60)
)

alter table t_friends add constraint city_cons foreign key city_name reference t_city(city_name);

Please can you tell me what is the mistake i am doing in the above syntex.

Thanks,
Aravindh K
This post has been answered by Rene Argento on Jan 30 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 27 2012
Added on Jan 30 2012
4 comments
7,773 views