hi...
i am having a problem assigning a foreign to a table....
i have two tables product table which is having two primary key and quantity table which have quant_poduct_up c_code
1. product_id which is of integer type and auto increment
2. product_upc_cod e which is of varchar type with size 40
what i want to do is reference product_upc_cod e of product with the quantity product_upc_cod e
both the fields are of same type and size i.e. varchar(40) but mysql is throwing an error saying error 1005 which is index not found...
is this anything to do with the two primary keys in one table.......
can anybody help me its URGENT.....
Thanx in Adavance..
i am having a problem assigning a foreign to a table....
i have two tables product table which is having two primary key and quantity table which have quant_poduct_up c_code
1. product_id which is of integer type and auto increment
2. product_upc_cod e which is of varchar type with size 40
what i want to do is reference product_upc_cod e of product with the quantity product_upc_cod e
both the fields are of same type and size i.e. varchar(40) but mysql is throwing an error saying error 1005 which is index not found...
is this anything to do with the two primary keys in one table.......
can anybody help me its URGENT.....
Thanx in Adavance..
Comment