[英]replace all column values equal to one string with another string
I have a MYSQL table called traceclasses and I have a column in this table called value
with some of its cell values equal to E as shown below.我有一个名为 traceclasses 的 MYSQL 表,我在此表中有一个名为
value
的列,其中一些单元格值等于 E,如下所示。 I would like to replace all such values with U. Which query should I use to do this?我想用 U 替换所有这些值。我应该使用哪个查询来执行此操作?
You are looking for update
:您正在寻找
update
:
update t
set value = 'U'
where value = 'E';
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.