阅读背景:

How to properly count rows in table2 related to items in table1 with clause non related to table1

来源:互联网 

I have simple magazine, and have tables with posts, comments, categories, etc. When listing single category, I want to have sum of comments per post in a listing, but that number is just wrong and it is driving me crazy. Note that single post can be in multiple categories.I have simple magazine, and have tables with po




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: