In MySQL, the CONCAT_WS()
function allows you to add a separator to concatenated strings. If you just use the CONCAT()
function, you’d have no separator (unless you explicitly added a separator as an argument between each string argument).
A common usage of the CONCAT_WS()
function is to create a comma-delimited list.