我正在使用两个查询测试结果,这些查询尝试根据邮件中的文本查找我的朋友帖子。第一个查询:
select uid, status_id, message, time, source FROM status where uid in (SELECT uid2 FROM friend WHERE uid1 = me()) AND (strpos(lower(message),"father") >=0 );
返回我想要的结果,工作正常。然而,第二个查询因为它使用流而更加开放,所以没有任何回复。
SELECT type, created_time, post_id, comments, actor_id, target_id, message FROM stream WHERE filter_key IN (SELECT filter_key FROM stream_filter WHERE uid = me()) AND actor_id IN (SELECT uid2 FROM friend WHERE uid1 = me()) AND (strpos(lower(message),"father") >=0 );
为什么流只返回状态呢?我错过了什么吗?