si dump fatto.
ho provato ma ho problemi in entrambi i modi:
codice:
mysql> SET foreign_key_constraints = 0;
ERROR 1193 (HY000): Unknown system variable 'foreign_key_constraints'
mysql> SET @SESSION.foreign_key_constraints = 0;
Query OK, 0 rows affected (0.00 sec)
mysql> truncate pacchetti;
ERROR 1701 (42000): Cannot truncate a table referenced in a foreign key constraint (`compagnia`.`articoli`, CONSTRAINT `pacchetto_codice_FK` FOREIGN KEY (`pacchetto_codice`) REFERENCES `compagnia`.`pacchetti` (`pacchetto_codice`))