How can I select records ONLY from yesterday?

后端 未结 6 2182
借酒劲吻你
借酒劲吻你 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:16

    If you want the timestamp for yesterday try something like:

    (CURRENT_TIMESTAMP - INTERVAL '1' DAY)
    

提交回复
热议问题