MySQL向数据库表的某字段追加数据

使用CONCAT()函数

mysql向表中某字段后追加一段字符串(field为字段名):

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

mysql 向表中某字段前加字符串
update table_name set field=CONCAT('str',field)

posted @ 2019-02-28 11:44  知亦行  阅读(14207)  评论(0编辑  收藏  举报