Home > Database > Mysql Tutorial > mysql字符串连接函数_MySQL

mysql字符串连接函数_MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-01 13:45:22
Original
981 people have browsed it

bitsCN.com

在做台湾岛旅游网时遇到的问题。

抓取了批数据,但价格没设好,需要重设,想在phpmyadmin上执行下,但用“+”不能连接字符串,搜了半天,才知道字符串连接需要CONCAT函数,使用形式如CONCAT(str1,str2,…) 。

例如:

update a_line set a_line.plbj=CONCAT(‘abc’,a.dingjin,’def’) WHERE a.dd=’郑州’

 

from:燕山脚下

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