English 中文(简体)
FQL NOT IN Equivalent营运人,如<>,EXCEPT,!
原标题:FQL NOT IN Equivalent operator like <> , EXCEPT, !=

I m trying to develop this code:

$users = $facebook->api(array(
   method  =>  fql.query ,
   query  =>    "SELECT uid, last_name, pic_big"
             + " FROM user WHERE uid IN ("
             + "     SELECT uid" 
             + "     FROM page_fan"
             + "     WHERE page_id= 411133928921438 " 
             + "         AND uid IN ("
             + "             SELECT uid2 FROM friend WHERE uid1 = me()"
             + "         )"
             + ")"
));

想法是,除了NOTIN外,我不想使用经营者,但FQL没有像NOTIN、EXCEPT这样的支持经营者。 • 如何与联邦土地调查局合作?

最佳回答

There is no NOT IN operator in FQL. You could do a simple select using IN and use PHP for negation. It s a little overhead, but as far as I know it s the only way.

我发现了一个相关员额:link,载于

问题回答

Febook确实支持NOT IN。 你们只得把它放在足够的位置上。

例如,寻找不是目前用户的用户或朋友参加的活动的用户,向目前的用户提供:

SELECT uid, name FROM user WHERE uid IN (
  SELECT uid FROM event_member WHERE eid=209798352393506
)
AND NOT (uid=me())
AND NOT (uid IN (
  SELECT uid1 FROM friend WHERE uid2=me()
))

仅找到了一条途径:NOT IN,必须共享高兴的消息;]

SELECT post_id, actor_id, message FROM stream WHERE source_id in(a, b, c) and NOT (actor_id in (a, b, c))

这将使用户能够从多个网页上获取信息,即用户的所有职位或不是网页本身、卡片人的所有网页。





相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签