mysql下sql语句 update 字段=字段+字符串 拼接

MySQL连贯字符串使用concat。

比方在test表的name字段前加字符'x',利用:
  
update aa set name=concat('x',name)

  

posted @ 2023-03-20 10:21  RoyFans  阅读(252)  评论(0编辑  收藏  举报