-1

我正在尝试使用 FQL 获取用户参加活动的名称,但无法获得真实结果。我的 SQL 是否错误或无法使用?

问题解答:

SELECT eid,name,start_time FROM event WHERE eid IN (SELECT eid FROM event_member WHERE uid = USER_ID and rsvp_status='attending' and (eid=EID1 or eid=EID2 or eid=EID3) and start_time < START_TIME  ORDER BY start_time desc)
4

1 回答 1

1

你可能想要这个:

SELECT name, venue, location, start_time FROM event WHERE eid IN (
  SELECT eid FROM event_member WHERE uid = "USER_ID_HERE" and rsvp_status="attending"
);
于 2011-12-26T14:13:06.833 回答