任何人都可以幫助我嗎?
我在查詢來自country_id鏈接的2個表,country_table和language_table。php mysql與concat連接表
country_table:
country_id continent country
100 asia china
101 asia japan
102 europe UK
103 europe germany
language_table:
country_id language_id language
100 01 mandarin
100 02 cantonese
102 03 english
102 04 french
102 05 welsh
我想實現的是有或無的語言來顯示所有的國家。如果它有語言,它應該像下面的示例輸出一樣連接起來。
continent country language
asia china mandarin, cantonese
asia japan ----
europe UK english, french, welsh
europe germany ----
什麼都試過了,年輕的箭魚? – Madbreaks
我所做的是我插入另一個查詢(語言)內循環查詢國家名單,我知道它是一個壞主意,即時尋求幫助,以糾正它。 – swordfish
添加更多信息和一些代碼! –