blog(bid,msg)
blogCate(bid,cid)
cate(cid,msg)
已知一个cid=1,如何查询到cid其对应的blog(blog有多个)
数据库查询,如何通过分类博客关联表查询到所有的博客
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
2条回答 默认 最新
歇歇 2020-12-12 13:41关注select t3.msg from cate t1
inner join blogcate t2 on t1.cid=t2.cid
inner join blog t3 on t3.bid=t2.bid where t1.cid=1
本回答被题主选为最佳回答 , 对您是否有帮助呢?评论 打赏 举报解决 1无用