Subtracting Dates in Oracle - Number or Interval Datatype?

后端 未结 5 1534
小鲜肉
小鲜肉 2020-12-02 23:21

I have a question about some of the internal workings for the Oracle DATE and INTERVAL datatypes. According to the Oracle 11.2 SQL Reference, when you subtract 2 DATE dataty

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-02 23:58

    select TIMEDIFF (STR_TO_DATE('07:15 PM', '%h:%i %p') , STR_TO_DATE('9:58 AM', '%h:%i %p'))

提交回复
热议问题