OR 和 AND 组合语句是否适用于 Facebook 的 FQL?
我正在尝试使用 Facebook 的 FQL 执行半高级查询。
SELECT message FROM stream WHERE actor_id= userid_1 AND source_id=userid_2 OR actor_id=userid_2 AND source_id=userid_1
但每次我运行它时,它都会显示为空白,即使两个用户之间的墙上有帖子,所以这是可能的还是我需要使用某种替代方法?
I'm attempting to execute a semi-advanced query using Facebook's FQL.
SELECT message FROM stream WHERE actor_id= userid_1 AND source_id=userid_2 OR actor_id=userid_2 AND source_id=userid_1
Everytime I run it though, it comes up blank, even though there are posts between the two users on their walls, so this possible or do I need to use some sort of alternative method?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它应该与组合一起使用。为什么不尝试用正确的括号括起来,例如
SELECT message FROM stream WHERE actor_id= userid_1 AND (source_id=userid_2 OR actor_id=userid_2) AND source_id=userid_1
It should work with the combination. Why dont you try with enclosing proper brackets like
SELECT message FROM stream WHERE actor_id= userid_1 AND (source_id=userid_2 OR actor_id=userid_2) AND source_id=userid_1