0

我正在使用带有网络服务的雅虎查询语言来使用 oauth 检索雅虎邮件。现在我的用例是下载给定时间范围内的所有电子邮件。

如何构造查询以在时间范围内获取数据?

我使用的查询(它不工作):

select message from ymail.msgcontent where (mids) in (SELECT  mid  FROM ymail.messages WHERE fid="Sent" and messageInfo.receivedDate >  1393417547 

谁能帮我写一个正确的。

4

1 回答 1

0

而不是直接选择mid,选择messageInfo.mid会修复它

下面的查询起到了神奇的作用:从 ymail.msgcontent where (mids) in 中选择消息(从 ymail.messages 中选择 messageInfo.mid where messageInfo.receivedDate > 1392658116)

于 2014-02-26T17:18:51.607 回答