Operation failed: There was an error while applying the SQL script to the database.
Executing:
INSERT INTO suco
.NOTAS
(NUMERO
, DATA_VENDA
, CPF
, MATRICULA
, IMPOSTO
) VALUES ('0100', '2010-05-08', '123456678', '345', '0.10');
ERROR 1452: 1452: Cannot add or update a child row: a foreign key constraint fails (suco
.notas
, CONSTRAINT FK_CLIENTES
FOREIGN KEY (CPF
) REFERENCES tbcliente
(CPF
))
SQL Statement:
INSERT INTO suco
.NOTAS
(NUMERO
, DATA_VENDA
, CPF
, MATRICULA
, IMPOSTO
) VALUES ('0100', '2010-05-08', '123456678', '345', '0.10')