有没有办法从给定的流查询中获取所有照片?我尝试了以下但它返回一个空集。
SELECT pid, aid, src_big FROM photo WHERE pid IN (SELECT attachment.media.photo.pid FROM #feed)
答案 0 :(得分:0)
很难说,因为我看不到你的'#feed'查询,但很可能你错过了一个stream_filter查询。这将为您提供类似以下3个查询的内容。祝你好运!
查询'key':
SELECT filter_key
FROM stream_filter
WHERE uid = me() AND name = 'Photos'
查询'Feed':
SELECT attachment.media.photo.pid
FROM stream
WHERE source_id = {id here} AND filter_key IN (SELECT filter FROM #key)
查询'照片':
SELECT caption, src_big, modified
FROM photo
WHERE pid IN (SELECT pid FROM #feed)