Home > Database > Mysql Tutorial > mysql连接多个字段数据到一个字段中_MySQL

mysql连接多个字段数据到一个字段中_MySQL

WBOY
Release: 2016-06-01 13:35:48
Original
969 people have browsed it

bitsCN.com


mysql连接多个字段数据到一个字段中
 

Sql代码 

update CM_CUST set CUST_NAME_CN= concat(CUST_NAME_CN,'(',CERTIFICATE_NO,TELPHONE,')')  
其中:CUST_NAME_CN,CERTIFICATE_NO,TELPHONE为表CM_CUST中的三个字段

效果如下图:
 mysql连接多个字段数据到一个字段中_MySQL

bitsCN.com
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template