How can I select records ONLY from yesterday?

后端 未结 6 2164
借酒劲吻你
借酒劲吻你 2020-12-15 03:05

I\'ve spent hours searching the web for an answer to this question...

Here\'s what I currently have:

select  *
from    order_header oh
where   tran_d         


        
6条回答
  •  有刺的猬
    2020-12-15 03:23

    If you don't support future dated transactions then something like this might work:

    AND oh.tran_date >= trunc(sysdate-1)
    

提交回复
热议问题