sql语句:从一个字段复制到内容更新替换到另外一个字段

例如:

update news set keywords=title where keywords=”

下面解释一下:

update 表名 set 被更新字段=取内容字段 where keywords=”

最后的where keywords=”是条件,keywords为空时才更新

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注