SET @num:= 0;
UPDATE view set description = concat("hello",(@num:= @num+1)) where type="floor";
SET @num:= 0;
UPDATE view set description = concat("hello",(@num:= @num+1)) where type="floor";
本文标题:mysql 更新某字段值为递增值
本文链接:https://www.haomeiwen.com/subject/dscglltx.html
网友评论