fql - fbconnect 获得第一篇帖子

发布于 2024-09-08 11:26:34 字数 261 浏览 13 评论 0原文

我想获得有史以来的第一个流记录。我尝试过:

SELECT post_id,created_time FROM stream WHERE source_id = 610611346 ORDER BY created_time ASC LIMIT 1

但它给了我最新的而不是第一个帖子:(。我将限制增加到 5 只是为了看看它带回来的内容,它只是按升序排列的最后 5 个帖子。我想我'我将 LIMIT 与索引混淆了,这该怎么办

I want to get the first stream record ever. I tried:

SELECT post_id,created_time FROM stream WHERE source_id = 610611346 ORDER BY created_time ASC LIMIT 1

But it gives me the LATEST instead of the FIRST post :(. I increased the limit to 5 just to have a look at what it was bringing back and it is simply the last 5 posts in ascending order. I guess I'm confusing LIMIT with like an index. How can this be done?

Mike

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

西瑶 2024-09-15 11:26:35

如果您出现以下情况,会发生什么情况:

SELECT post_id,created_time FROM stream WHERE source_id = 610611346 ORDER BY created_time DESC LIMIT 1

What happens if you:

SELECT post_id,created_time FROM stream WHERE source_id = 610611346 ORDER BY created_time DESC LIMIT 1
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文