FQL的新手,想要提取或不提取“OTHER”邮箱,并按用户对所有正文邮件进行分组。下面的查询示例仅捕获每条消息并仅在INBOX中。收件箱folder_id
为0
,发件箱为1
,更新为4
。 OTHER收件箱的选项是什么?
SELECT message_id, thread_id, author_id, body, created_time, attachment FROM message WHERE thread_id IN (SELECT thread_id FROM thread WHERE folder_id = 0)
答案 0 :(得分:0)
使用OR运算符
SELECT message_id,thread_id,author_id,body,created_time,attachment FROM message WHERE thread_id IN(SELECT thread_id FROM thread WHERE folder_id = 0 OR folder_id = 1 OR folder_id = 4)