如何使用IN语句选择多个用户的状态?

发布于 2024-12-07 23:56:39 字数 352 浏览 0 评论 0原文

我的状态返回许多状态:

select message from status where uid = me()

朋友的状态返回许多状态:

select message from status where uid in ("639620453")

结合两者返回一个状态:

select message from status where uid in ("36818590","639620453")

它看起来像是平台的一个错误。

有谁知道同时选择多个用户状态的替代方法?

My statuses returns many statuses:

select message from status where uid = me()

Friend's statuses returns many statuses:

select message from status where uid in ("639620453")

Combining both returns a single status:

select message from status where uid in ("36818590","639620453")

It looks like a bug with the platform.

Does anyone know an alternate way to select many users' statuses at once?

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

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

发布评论

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

评论(1

请爱~陌生人 2024-12-14 23:56:39

这似乎确实存在一个错误,您应该在此处记录。解决方法可能是查询流表。

select message, source_id
from stream 
where source_id  in ("36818590","639620453") 

There does seem to be a bug with this that you should log here. A workaround might be to query the stream table.

select message, source_id
from stream 
where source_id  in ("36818590","639620453") 
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文