📜  Postgresql select join by date - 加入时间戳值等于日期午夜的行 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:34.699000             🧑  作者: Mango

代码示例1
SELECT t1.*
FROM t1 
JOIN t2 ON (
    t1.t2_id = t2.id AND
    t1.date_field::TIMESTAMP = t2.datetime_field AT TIME ZONE 'Europe/London'
)