I want to create a references to foreign table. but i\'m getting the following error:
query:
CREATE TABLE category_ids (id INT, post_id INT,
For me works with this.
CREATE TABLE category_ids (id INT, post_id INT references post(id), INDEX par_ind (post_id) ) ENGINE=INNODB;