0
我想在蜂巢巢式病例錯誤:蜂巢
執行這種情況下select case when (hour(rand_date)>=0 and hour(rand_date)<6) then 'early_morning' else
case when (hour(rand_date)>=6 and hour(rand_date)<12) then 'morning' else
case when (hour(rand_date)>=12 and hour(rand_date)<18) then 'afternoon' else
case when (hour(rand_date)>=18 and hour(rand_date)<24) then 'night' else 'other' end AS hourbins,
rand_date from mock_ads_dates ;
它給了我一個錯誤
:「作爲」預期的情況下,表達KW_END接近「結束」不匹配的輸入Error while compiling statement: FAILED: ParseException line 4:85 mismatched input 'AS' expecting KW_END near 'end' in case expression