0

我想做类似的事情:

select name from event where creator = 153957741360676

但是列创建者不可索引..那我该怎么做呢?

4

1 回答 1

0

您可以通过查询两个表event_member和来检索此类信息event

SELECT name FROM event WHERE eid IN (
  SELECT eid from event_member WHERE uid = me()
) AND creator = me()

更新:
由于您谈到由页面创建的事件,您需要使用页面的 id 而不是me()

SELECT name FROM event WHERE eid IN (
  SELECT eid from event_member WHERE uid = 153957741360676
) AND creator = 153957741360676

注意事项(见event表格文档):

从 7 月 5 日开始,即使是公共活动也需要访问令牌。

于 2012-05-07T19:16:34.273 回答