I set up a MySQL Query with the purpose of updating a multi-line field 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)
It worked perfectly.
I would, however, like to update other fields in parallel, such as quantity. How do I match the following query to make this possible?