concat()函数

1、功能:将多个字符串连接成一个字符串。

2、语法:concat(str1, str2,...)

返回结果为连接参数产生的字符串,如果有任何一个参数为null,则返回值为null。

 

group_concat()函数

功能:将group by产生的同一个分组中的值连接起来,返回一个字符串结果。

如:

group_concat与concat()      ------->group_concat与concat()

SELECT t.id,group_concat(url) gurl
from test t GROUP BY t.id;

相关文章:

  • 2021-12-14
  • 2022-12-23
  • 2021-07-22
  • 2021-09-03
猜你喜欢
  • 2021-07-01
  • 2021-05-24
  • 2022-02-15
  • 2022-12-23
  • 2022-12-23
  • 2021-07-19
  • 2021-08-17
相关资源
相似解决方案