Home > Database > Mysql Tutorial > How to implement string concatenation in MySQL

How to implement string concatenation in MySQL

王林
Release: 2023-06-01 11:22:06
forward
3279 people have browsed it

String connection

Command: concat(str,str2,str3)

Function: splicing strings

Application scenario: splicing characters String, for example, adding a specified string to some fields.

Example:

mysql> select concat("andy","qian");
+-----------------------+
| concat("andy","qian") |
+-----------------------+
| andyqian  |
+-----------------------+
1 row in set (0.00 sec)
Copy after login

This function is usually used more often. The basic scenario is to add a specific string to certain data. Methods as below:

How to implement string concatenation in MySQL

The above is the detailed content of How to implement string concatenation in MySQL. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:yisu.com
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