你好伙计我有 posts
表名称和另一个名为 counttbl
的表
在我的post
表中有列名
postid(primarykey), postdetails, postdate(timestamp)
在 counttbl
里有 3列
id(primarykey), postid,countnumber
我想选择 counttbl
中有 maximumnumber
的那个贴子
在帖子中我有
postid = 1, postdetails = details1, date = 29:11:00 00:00:00
还有 postid = 1
,countnumber = 4
和 postid = 2
,countnumber = 3
然后我想选择那个包含 maximumber
计数的文章,并显示使用 Join的文章详细信息。
我是新手所以请帮助我