Consider table "A" and "B".
Table "B" has a foreign keys referring to table "A".
The "A" table has no foreign keys.
None of the tables have records.
When trying to truncate table "A", the following error is returned:
Can not truncate a table referenced in a foreign key constraint (bd
,B
, CONSTRAINTFK_1E45D7B68A6FD59C
FOREIGN KEY (a_id
) REFERENCESbd
.A
(id
))
If there is nothing in the tables, why does the error occur?