mysql中concat函数,mysql在字段前/后增加字符串

mysql向表中某字段后追加一段字符串:

update table_name set field=CONCAT(field,'',str);

mysql 向表中某字段前加字符串:

update table_name set field=CONCAT('str',field);

  

posted @ 2018-03-20 18:05  whist  阅读(3056)  评论(0编辑  收藏  举报