concat() 是 MySQL 的一个字符串函数,此方法用于拼接字符串。
语法
select concat('arg1','arg2','arg3',....);
示例 1
select concat('yxjc','123');
输出:
mysql> select concat('yxjc','123');
+----------------------+
| concat('yxjc','123') |
+----------------------+
| yxjc123 |
+----------------------+
1 row in set (0.00 sec)
示例 2
select concat('m','y','s','q','l');
输出:
mysql> select concat('m','y','s','q','l');
+-----------------------------+
| concat('m','y','s','q','l') |
+-----------------------------+
| mysql |
+-----------------------------+
1 row in set (0.00 sec)