SELECT pic_big, name, venue, location, start_time, eid
FROM event WHERE eid IN (SELECT eid
FROM event_member
WHERE uid = me())
我觉得不仅是我创建的事件,而且我可以通过此查询找到我加入的事件。我不得参加与测试无关的活动。任何建议都会有所帮助。
答案 0 :(得分: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()