MySQL : ERROR 1215 (HY000): Cannot add foreign key constraint

后端 未结 16 1921
误落风尘
误落风尘 2020-11-30 01:37

I have read Database system concepts, 6th edition, Silberschatz. I\'m going to implement the university database system shown in chapter 2 on OS X

16条回答
  •  一向
    一向 (楼主)
    2020-11-30 02:17

    CONSTRAINT vendor_tbfk_1 FOREIGN KEY (V_CODE) REFERENCES vendor (V_CODE) ON UPDATE CASCADE
    

    this is how it could be... look at the referencing column part. (V_code)

提交回复
热议问题