1

我有一个关于 FQL 查询的问题:

这个查询:

SELECT pic_big, name, venue, location, start_time, eid 
FROM event
WHERE eid IN (
    SELECT eid
    FROM event_member
    WHERE uid IN (
        SELECT uid2
        FROM friend
        WHERE uid1 = me()
    ) 
    AND start_time > '2013-02-21T00:00:00'
    OR uid = me()
)

就等于要求我每一个朋友的事件?

for each friend {

    SELECT name, description, pic_small, pic_big, eid,venue, location 
    FROM event
    WHERE eid in (
        SELECT eid 
        FROM event_member
        WHERE uid = me()
        AND start_time > '2013-02-21T00:00:00'
    )

}

我有不同的结果..以第二种方式(我还排除了我的事件 uid = me ())我获得了更多的事件...

4

0 回答 0