更新表,其中列以值“ st”%开头

时间:2019-03-05 13:30:38

标签: mysql

我正在尝试更新产品代码以ST开头的列品牌

 `Update outerbarcodes set brand='A' where productcode = 'ST%';`

由于某些原因,以上代码无法正常工作。

1 个答案:

答案 0 :(得分:1)

使用like运算符代替=

 Update outerbarcodes set brand='A' where productcode like 'ST%'
相关问题