0
有沒有辦法從給定的流查詢中獲取所有照片?我嘗試了以下,但它返回一個空集。從流中獲取照片
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)
什麼選擇附件。 media.pho to.pid從#feed返回? – Oleg
它返回正確的數據類型,但它嵌套在4個空對象中。 –
請問,您能否將這些數據添加到您的文章? – Oleg