mysql concat_ws without duplicates
问题 I am trying to concatenate a few fields into a single one, but only keep unique values in the resulting string. Example: title_orig | title_fr | title_de | title_it --------------------------------------------------------------------- KANDAHAR | KANDAHAR | REISE NACH KANDAHAR | VIAGGO A KANDAHAR SCREAM 2 | SCREAM 2 | SCREAM 2 | SCREAM 2 With CONCAT_WS(', ', title_orig, title_fr, title_de, title_it) AS titles I would get titles ------------------------------------------------------------