Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
使用指定分隔符将多个字符串连接成一个新字符串。
VARCHAR concat_ws(VARCHAR sep, VARCHAR str,...)
sep
str
r
starrocks
MySQL > select concat_ws("r", "sta", "rocks"); +--------------------------------+ | concat_ws('r', 'sta', 'rocks') | +--------------------------------+ | starrocks | +--------------------------------+
NULL
MySQL > select concat_ws(NULL, "star", "rocks"); +----------------------------------+ | concat_ws(NULL, 'star', 'rocks') | +----------------------------------+ | NULL | +----------------------------------+
MySQL > select concat_ws("r", "sta", NULL,"rocks"); +-------------------------------------+ | concat_ws("r", "sta", NULL,"rocks") | +-------------------------------------+ | starrocks | +-------------------------------------+