Possible Duplicate:
Setting up foreign keys in phpMyAdmin?
ALTER table podcategory add FOREIGN KEY (category_id)
REFERENCES category(category_id)
ON UPDATE RESTRICT
ON DELETE CASCADE
When i send script in phpmyadmin i get error
Can't create table './C292729_T25027/#sql-be0_30ed238.frm' (errno: 150)
How to add this FOREIGN KEY?