oracle sql date not later than today

后端 未结 2 1690
梦毁少年i
梦毁少年i 2021-02-03 21:21

I need to display some data if it\'s a - new data - updated data let\'s say, I will be basing these data from a publishdate column and updated column where publishdate and

2条回答
  •  面向向阳花
    2021-02-03 22:20

    Try this

    Where TRUNC(sysdate) = TRUNC(publish_date)
    

    sysdate returns today's date with the time. The TRUNC removes the time part

提交回复
热议问题