2
我需要標籤從下面的查詢相結合,用逗號分隔符分隔:結合SQL結果用逗號分隔符
SQL
select question.text,tag.text
from question
left join q_t on question.id = q_t.wall_id
left join tag on q_t.tag_id = tag.id
where question.id in (1000001,1000002,1000003,1000004,1000005)
order by field(question.id,1000001,1000002,1000003,1000004,1000005)
當前的結果:
text text
where is England? Geography
where is England? Continent
where is England? general_knowledge
how many ...? sport
how many ...? Europe
請求的結果:
text text
where is England? Geography,Continent,general_knowledge
how many ...? sport,Europe
個
感謝,