select ename,job,sal,
case job when 'president' then sal+100
when 'manager' then sal+800
else sal+400
end
from emp;
case job when 'president' then sal+100
when 'manager' then sal+800
else sal+400
end
from emp;
2016-05-22
已采納回答 / HQ_Boy
注意到課程中定義的url變量沒?通過url指定的協議就和服務器端的hive jdbc取得了連接。你的問題是服務器端存在私有地址問題,那么你就只能在服務器端的路由器上面配置端口轉發相關的東西了,這個比較麻煩。 建議搜索“路由器端口轉發”進行學習。
2016-03-16
請問hive是否有多種空值?我試過用is null查詢,但查不出其中一些包含空值的行,希望能完整介紹下hive不同類型的空值。
2015-12-13