2016-03-28 26 views
6

YQL console içinde bir sorgu yapmaya çalışıyorum.al API ile santigrat Yahoo hava alın

select * from weather.forecast where woeid=1989965 

Ama metrik sisteme (santigrat) değerleri elde etmek istiyorum, bu yüzden bu sorguyu kullanın: Bu seferki çalışıyor

{ 
"query": { 
    "count": 0, 
    "created": "2016-03-28T01:46:08Z", 
    "lang": "ru", 
    "results": null 
} 
} 
:
select * from weather.forecast where woeid=1989965 and unit='c' 

Ben boş bir sonuç almak

Değerleri kendim dönüştürebilirim ama umarım kutunun dışında çalışabilirim ...

cevap

7

Bugün keşfettim, u = 'c' çalıştı. Bu nedenle, kendi sorumun cevabı şu olabilir:

select * from weather.forecast where woeid=1989965 and u='c' 
İlgili konular