
create table matchdetails(mid varchar2(10),mdate date,team1 varchar2(10),team2 varchar2(10), stadium varchar2(10),city varchar2(10),mom varchar2(10),primary key(mid,mdate);
->the match tablle is created
create table batsman(mid varchar2(10),pid varchar2(10),runs varchar2(10),balls varchar2(10), fours varchar2(10),sixes varchar2(10),primary key(mid.pid), foreign key(mid) references matchdetails(mid));
->for the above batsman table it shows error on foreign key can any one tell me plz how to reference matchdetails
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.
