mysql select distinct comma delimited values
问题 i have a mysql table id cid c_name keywords 1 28 Stutgart BW,Mercedes,Porsche,Auto,Germany 2 34 Roma Sezar,A.S. Roma 3 28 München BMW,Oktober Fest,Auto,Germany i need a query to show keywords from cid=28 but i want to see only 1 time a keyword, like (BW,Mercedes,Porsche,Auto,Bmw,Oktober Fest,Germany) i dont want to list 2 time a keyword, how can resolve this problem? i have tried distinct but could not get what i want 回答1: Split it before adding it all up with DISTINCT.Of course,better is to