使用与模式匹配的多个列更新 table

Update a table with multiple columns matching a pattern

我想在MySQL中写下这样的查询。

update mytable set x = 3*x where x is like '%something%' and row = 34

更新多列有特定的模式。 我想知道如何做到这一点。任何帮助将不胜感激!

您不能对具有特定模式的列名进行多次更新,请尝试通过脚本进行。