0
SELECT pic_big, name, venue, location, start_time, eid 
FROM event WHERE eid IN (SELECT eid 
                         FROM event_member 
                         WHERE uid = me())

我觉得不仅我创建的事件,而且我加入的事件都可以通过这个查询找到。我不能参加与考试无关的活动。任何意见将是有益的。

4

1 回答 1

0

我认为您只需要向该外部查询添加一个创建者过滤器。

SELECT pic_big, name, venue, location, start_time, eid 
FROM event 
WHERE eid IN (SELECT eid 
              FROM event_member 
              WHERE uid = me())
AND creator = me()
于 2012-04-17T14:56:01.527 回答