I need to do UPDATE with SELECT for multiple records, today I'm with this query:
UPDATE banco.ordem SET valor = (SELECT (CEILING((litros * 3.67)*100)/100) AS valor_litros FROM banco.ordem WHERE ordens = 2763) WHERE ordens = 2763
This query updates only one record, I have to make all the records I put inside the IN ('2763','2768','2802', 'etc')
.
Has anyone ever had a situation or do you have any idea how to do it?