三个表,其中一个是中间表,如何把resource_seriall,还有他的id放到一个字段

SELECT
p.product_id,p.product_name,p.product_type,p.msg_level,p.state,p.create_account,
i.name,i.create_account,i.id,GROUP_CONCAT(r.resource_seriall) r.resource_serial,GROUP_CONCAT(r.id) r.id
FROM product_info p,product_type i,resources_info r,product_resources_info pr where p.product_type=i.id and p.create_account=i.create_account
and p.product_id=12133 and r.id=pr.resource_id and pr.product_id=12133

两个表通过中间表关联起来,里面其中的两个字段分别是那两个表的id

=通过中间表关联起来,通过外键关联两个表