Hi,
I cant able to create an table with a foreign key :
Syntax :
Here customer is the other table.
Error Msg:
thanks....
I cant able to create an table with a foreign key :
Syntax :
Code:
create table order(orderid int not null,cost int,cid int not null,foreign key(cid) references customer(cid))type=innodb;
Error Msg:
ERROR 1064 (42000) : you have an error in your sql syntax ;check the manual that corresponds to your MYSQL server version for the right syntax......... ..
thanks....
Comment