oracle SQL how to remove time from date

前端 未结 5 694
小鲜肉
小鲜肉 2020-12-03 02:48

I have a column named StartDate containing a date in this format: 03-03-2012 15:22

What I need is to convert it to date. It should be looki

5条回答
  •  醉话见心
    2020-12-03 03:16

    Try

    SELECT to_char(p1.PA_VALUE,'DD/MM/YYYY') as StartDate,
           to_char(p2.PA_VALUE,'DD/MM/YYYY') as EndDate
       ...
    

提交回复
热议问题