使用 IN 、NOT 关键字的 FQL SELECT 查询
我正试图找回我所有的朋友,除了少数人。
我形成了这样的查询:
SELECT uid,name FROM user WHERE uid NOT IN ($x)
检索每个人期望那些在 $x 中的人。
This is giving me an fatal error Uncaught Exception: 601: Parser error: unexpected 'NOT
提前致谢!
I'm trying to retrieve all my friends expect few people.
I formed the query like this
SELECT uid,name FROM user WHERE uid NOT IN ($x)
Retrieve every one expect those people who are in $x.
This is giving me an fatal error Uncaught Exception: 601: Parser error: unexpected 'NOT
Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用
WHERE NOT (columnName IN (things 'not in')
就像这个例子:
You can use
WHERE NOT (columnName IN (things 'not in')
Like this example :
FQL 不支持“NOT IN”功能。参考: http://forum.developers.facebook.net/viewtopic.php?id =1420
我建议使用这样的东西来获取你所有的朋友:
然后在你的脚本中,当它返回时忽略那些你不想要的,假设你正在使用 php 类似的东西:
希望有帮助。
"NOT IN" is not a supported feature of FQL. Ref: http://forum.developers.facebook.net/viewtopic.php?id=1420
I would suggest using something like this to get all of your friends:
And then in your script when this returns ignoring those you don't want, assuming you are using php something like:
Hope that helps.