mysql下面
select name from table where cid=8
得到结果:
name陕西
四川
湖北
贵州
云南现在我想要这样的结果:
name陕西,四川,湖北,贵州,云南我尝试用select concat_ws(',',select name from table where cid=8)结果失败!
请问正确方法应该怎么做,最好用一条SQL语句.