cant update table
#1

Код:
[18:28:13] [DEBUG] pushed value 'Cannot add or update a child row: a foreign key constraint fails (`samp6452_dayznew`.`holster`, CONSTRAINT `fk_htrid` FOREIGN KEY (`AccountID`) REFERENCES `accountstest` (`AccountID`) ON DELETE CASCADE ON UPDATE CASCADE)' onto AMX stack
What do this means?
Reply
#2

Basically means you have 2 or more tables that are connected using keys (primary for primary table (e.g users) and foreign key for secondary table (e.g player inventory)).

And that also means:

- you cannot delete an item from primary table if it has correlated items in secondary table.
- and can't edit as above ^
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)