Član
- Učlanjen(a)
- 01.03.2011
- Poruka
- 10
Napravio sam bazu u phpMyAdmin sa 7 tabela i sve sam uspesno povezao osim jedne: "category" gde mi na postavljen SQL query:
"ALTER TABLE 'category' ADD FOREIGN KEY ('catAttributesetID') REFERENCES 'catalogdb'.attributeset' ('atsAttributeSetID');"
SQL izbaci sledecu gresku:
"#1452-Cannot add or update a child row: a foreign key constraint fails"
:dntknw:...
Please, HEEELP
"ALTER TABLE 'category' ADD FOREIGN KEY ('catAttributesetID') REFERENCES 'catalogdb'.attributeset' ('atsAttributeSetID');"
SQL izbaci sledecu gresku:
"#1452-Cannot add or update a child row: a foreign key constraint fails"
:dntknw:...
Please, HEEELP
