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}時(shí)間少一個(gè)小時(shí),${hiveconf:date-}:的時(shí)間一般是這樣的${hiveconf:date-} = ‘201704262111’上面這段SQL是查詢一個(gè)小時(shí)指內(nèi)的數(shù)據(jù),而這個(gè)‘’201704262015‘’其實(shí)是一個(gè)腳本,里面的數(shù)值是隨意變化的,我想要查詢半個(gè)小時(shí)內(nèi)的數(shù)據(jù)應(yīng)該怎樣寫(xiě)?請(qǐng)求大神們來(lái)解答!??!
關(guān)于hive的時(shí)間表示
妞給爺樂(lè)一個(gè)
2017-04-26 21:12:25