1
See if that solves your problem
update t1
set t1.carro = t2.carro
from tabela1 as t1
inner join tabela2 as t2 on t2.id = t1.tabela2_id
I used as an example this answer
EDITED
UPDATE tp531710 t1 INNER JOIN jornada as t2 on t2.id = t1.jornada_id
SET t1.carro = t2.carro_id
WHERE t1.carro is null
The original query is this UPDATE t1 SET t1.carro = t2.carro_id FROM tp531710 as t1 INNER JOIN journey as t2 on t2.id = t1.jornada_id
– user107357
Presented this error #1064 - You have a syntax error in your SQL next to 'FROM tp531710 as t1 INNER JOIN journey as t2 on t2.id = t1.jornada_id' on line 3
– user107357
See if now resolves, I edited my answer with another way
– Matheus Ribeiro
Fantastic!!!! It worked, thank you !
– user107357