Cannot add or update a child row: a foreign key constraint fails
求解,這個錯誤怎么解決???
org.hibernate.engine.jdbc.spi.SqlExceptionHelper logExceptions
WARN: SQL Error: 1452, SQLState: 23000
org.hibernate.engine.jdbc.spi.SqlExceptionHelper logExceptions
ERROR: Cannot add or update a child row: a foreign key constraint fails?
2016-01-14
是不是兩張表的主鍵相互作為對方外鍵了?