select * from aaaaawhere substr(time_id,1,11)>=substr(${hiveconf:date-},1,11)substr(time_id,1,11)>=substr(${hiveconf:date},1,11)${hiveconf:date-}要比下面的${hiveconf:date}時間少一個小時,${hiveconf:date-}:的時間一般是這樣的${hiveconf:date-} = ‘201704262111’上面這段SQL是查詢一個小時指內(nèi)的數(shù)據(jù),而這個‘’201704262015‘’其實(shí)是一個腳本,里面的數(shù)值是隨意變化的,我想要查詢半個小時內(nèi)的數(shù)據(jù)應(yīng)該怎樣寫?請求大神們來解答?。。?
關(guān)于hive的時間表示
妞給爺樂一個
2017-04-26 21:12:25
