---
title: "在mysql数据库中为字段name的每个值的前面都添加一个字符串"
author: "duyunfengsolo"
date: "2009-12-09T10:05:47Z"
tags: []
categories: ["数据库"]
slug: "mysql-name"
draft: false
lastmod: "2009-12-09T10:05:47Z"
id: 544506
url: "https://solodu.iteye.com/blog/544506"
---

```
1.例如替换news表中的name字段的所有值，使name字段的所有值的前面都加上一个hello的字符串。原来是aa,bb的话，替换后变成helloaa,hellobb。
update news set content = concat('hello',content)
```