Tagged: SQLSTATE

添加外键约束时报错: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails 。 0

Error when adding foreign key constraints: sqlstate[23000]: Integrity Constraint Violation: 1452 Cannot add or update a child row: A foreign key constraint fails

浏览量: 2 1. Error when adding foreign key constraints: sqlstate[23000]: Integrity Constraint Violation: 1452 cannot add or update a child row: a foreign key constraint fails . as shown in Figure 1 2. Analyze...