想要統計北京時間 昨日晚上7點-今日晚上7點的資料,資料庫是UTC時間。
自己使用timestamp轉換的,但是跑出來的時間一直沒有對上,還請大佬求教

select
dateadd(hour,3,fetch_creator_time::timestamp)::timestamp::date dates,
fetch_creator_time,last_update
from bi_operation.operation_batch_post
where channel = 'aaaa'
and fetch_creator_time >= '2020-07-11'
order by 2 asc
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/17919.html
標籤:疑難問題
