0
I have this command SQL to update the tableREQUISICOES with the table dataREQUISICOES_ATUALIZA.
Use as key to update the field numero_requisicao, but I need if not find correspondencia on the table REQUISICOES, enter a new record from the table REQUISICOES_ATUALIZA;
This one works to update:
UPDATE requisicoes a
JOIN requisicoes_atualiza b
SET a.projeto = b.projeto
WHERE a.numero_requisicao = b.numero_requisicao
And what would SQL look like for those who don’t exist?

What would be the new record if it does not exist?
– Marconi
If you understand about, you will be able to solve your problem: Not IN or Not EXISTS which to use?
– Marconi
If there is no corresponding request number in the Requisicoes table, I want to insert the data from the updated table... Marconi
– Andre Maia
I am using MYSQL!
– Andre Maia