How can I count the number of comments and likes that a post has in MySQL?

前端 未结 0 1537
轮回少年
轮回少年 2020-12-23 13:48

posts table

comments table

likes table

I have three tables and want to use \'left join\' and \'group by\' to get the total amount of likes and comments

相关标签:
回答
  • 消灭零回复
提交回复
热议问题