0
Could someone help me, as a select-based Insert would do so by checking if the value already exists , with multiple values ? this way this working, however I would like to insert more than 1 record at once.
insert into tb_rel_regra_sit_contrato
(
status_acordo_id,
sit_id,
new_sit_contrato
)
sSELECT 2, 9 , 9
WHERE NOT EXISTS
(SELECT * FROM tb_rel_regra_sit_contrato WHERE
status_acordo_id = 2 and
sit_id = 9 and
new_sit_contrato = 9);
thanks for the tip, I adapted your idea for a Subquery and I’m trying to finish here.
– Rubens Cordeiro