表:产品
id | name | related_product --------------------------------- 1 | Product 1 | 20,30, 2 | Product 2 | 200,300 20 | Product 20 | null 30 | Product 30 | null 200| Product 200| null 300| Product 300| null
此处," related_product"属于同一张桌子"产品" ..
你能帮我写一个查询来返回结果,如:
id | name | related_product --------------------------------- 1 | Product 1 | Product 20,Product 30, 2 | Product 2 | Product 200,Product 300 20 | Product 20 | null 30 | Product 30 | null 200| Product 200| null 300| Product 300| null
所以,基本上我需要产品名称而不是产品ID。