mysql如何更新一列数据里的特定的几个数据?

img


mysql如何使用update指令更新msgvalue列内qy等于1和3的值为1?前提用一条update指令就能实现。

update plc set msgvalue=1 where qy in (1,3)