Cannot resolve table name close to

前端 未结 3 1853
别那么骄傲
别那么骄傲 2020-12-17 10:24

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,
                 


        
3条回答
  •  暖寄归人
    2020-12-17 11:14

    For me works with this.

    CREATE TABLE category_ids (id INT, post_id INT references post(id),
                    INDEX par_ind (post_id)
    ) ENGINE=INNODB;
    

提交回复
热议问题