有没有办法从给定的流查询中获取所有照片?我尝试了以下方法,但它返回一个空集。
SELECT pid, aid, src_big FROM photo WHERE pid IN (SELECT attachment.media.photo.pid FROM #feed)
有没有办法从给定的流查询中获取所有照片?我尝试了以下方法,但它返回一个空集。
SELECT pid, aid, src_big FROM photo WHERE pid IN (SELECT attachment.media.photo.pid FROM #feed)
很难说,因为我看不到您的“#feed”查询,但很可能您错过了 stream_filter 查询。这将为您提供以下 3 个查询。祝你好运!
查询“密钥”:
SELECT filter_key
FROM stream_filter
WHERE uid = me() AND name = 'Photos'
查询“饲料”:
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)