-1
I have 4 tables, the problem is that I have in the table the white color and I want to change the color only of a car that has the white color, changes of all cars with the white color.
update tb_veiculo v join tb_marca_veiculo ma
on v.cd_marca_veiculo=ma.cd_marca_veiculo join tb_modelo_veiculo m
on ma.cd_marca_veiculo=m.cd_marca_veiculo join tb_cor_veiculo c
on m.cd_cor_veiculo=c.cd_cor_veiculo
set m.cd_cor_veiculo='1'
where m.cd_cor_veiculo='0' and v.cd_placa_veiculo='BBB002';