How to add a variable number of hours to a date in PostgreSQL?

前端 未结 4 667
攒了一身酷
攒了一身酷 2020-12-29 18:46

Apparently, PostgreSQL doesn\'t have DATEADD, because you can just use the + or - operators.

I need to add a number of hours t

4条回答
  •  感情败类
    2020-12-29 18:53

    If anyone wants to add in time stamp then

    select time '05:00' - interval '2 hours'    
    

提交回复
热议问题