-1
I have ZIP table with a new OP field with DEL information to delete.
When I perform the instruction:
DELETE FROM cepdb.log_bairro where BAI_OPERACAO = 'del';
Returns:
2 Cannot delete or update a parent row: a foreign key constraint fails (`cepdb`.`log_faixa_bairro`, CONSTRAINT `LOG_FAIXA_BAIRRO_FK` FOREIGN KEY (`BAI_NU`) REFERENCES `log_bairro` (`BAI_NU`) ON DELETE RESTRICT ON UPDATE RESTRICT) SQL2.sql 1 1
How to delete?