①concat在原有的基础上追加内容(追加)
sql 语句:update 表名 set title=concat( title, '123') where id=1;
结果 id title
1 abc
更新后 1 abc123
②replace 替换原有字段内容里的值 (仅仅替换)
sql 语句:update 表名 set title=replace( title, '模板', '版') where id=1;
结果 id title
1 中文模板
更新后 1 中文版
①concat在原有的基础上追加内容(追加)
sql 语句:update 表名 set title=concat( title, '123') where id=1;
结果 id title
1 abc
更新后 1 abc123
②replace 替换原有字段内容里的值 (仅仅替换)
sql 语句:update 表名 set title=replace( title, '模板', '版') where id=1;
结果 id title
1 中文模板
更新后 1 中文版