HOUR(time)SELECT HOUR(‘11:22:33') SELECT HOUR(‘2016-01-16 11:22:33')登入後複製-> 11 -> 11登入後複製傳回該date或time的hour值,值範圍(0-23)