这就是我所拥有的:
询问
select
bc.short_desc as cdesc
from
blog_post as bp
left join blog_post_category_link as blpc on bp.post_id = blpc.post_id
inner join blog_category as bc on blpc.cat_id = bc.cat_id
where bp.post_id = 1
结果
----------------
| |cdesc |
----------------
|1|Top level |
----------------
|2|Sub level |
----------------
|3|SubSub level|
----------------
第二次查询
select
bt.short_desc as tdesc
from
blog_post as bp
left join blog_post_tag_link as blpt on bp.post_id = blpt.post_id
inner join blog_tag as bt on blpt.tag_id = bt.tag_id
where bp.post_id = 1
第二个结果
----------------
| |tdesc |
----------------
|1|Tag1 |
----------------
|2|Tag2 |
----------------
加入这两个查询后的期望结果
----------------------
| |cdesc |tdesc|
----------------------
|1|Top level |Tag1 |
----------------------
|2|Sub level |Tag2 |
----------------------
|3|SubSub level| |
----------------------
有可能吗?