1
I built a Mysql Query in order to update a field in several rows of my Mysql table. It was as follows:
update produtos set (nome) = case codigo
when 5 then 'teste 1'
when 6 then 'teste 2'
when 7 then 'teste 3'
where codigo in (5,6,7)
Worked perfectly.
I would, however, like to update in parallel other fields, such as quantity. As adequo the following query above to make this possible?