且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

INSERT语句与FOREIGN KEY约束冲突.数据库中发生了冲突

更新时间:2023-02-25 22:16:37

在将userIds 12插入USERS_AVATAR之前,必须首先将它们插入表USERS中.这就是FOREIGN KEY约束所需要的.

Before inserting userIds 1 and 2 into USERS_AVATAR, you must first insert them into table USERS. That is what the FOREIGN KEY constraint is requiring.