Mysql 按日期对聚合行进行排序
我认为这是一个简单的问题:我只是 php 的新手,无法真正以有效的方式解决这个问题。我想要做的是为每个朋友查询所有帖子并返回按日期排序的单个列表。但它们是两个不同的表,我真的不明白如何用单个语句连接这些表,也不明白这是否是最好的可扩展解决方案。非常感谢帮助! :)
I think this is a simple question: I'm just new to php and can't really figure this out in an efficient way. What I want to do is for each friend, query all the posts and return a single list thats sorted by the date. But they are two different tables and I don't really understand how the tables could be joined with a single statement nor if this is even the best scalable solution. Help is greatly appreciated! :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
像这样的东西:
Something like: