尝试在YQL控制台中进行查询.这个工作正常:
select * from weather.forecast where woeid=1989965
Run Code Online (Sandbox Code Playgroud)
但我想获取公制系统(摄氏度)中的值,所以我使用此查询:
select * from weather.forecast where woeid=1989965 and unit='c'
Run Code Online (Sandbox Code Playgroud)
我得到一个null结果:
{
"query": {
"count": 0,
"created": "2016-03-28T01:46:08Z",
"lang": "ru",
"results": null
}
}
Run Code Online (Sandbox Code Playgroud)
我可以自己转换价值观,但我希望我能让它开箱即用......
今天我发现,u ='c'是有效的.所以,我自己的问题的答案是:
select * from weather.forecast where woeid=1989965 and u='c'
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2172 次 |
| 最近记录: |