skip to Main Content

Postgresql – Why the date of CURRENT_TIMESTAMP is different from CURRENT_DATE in Postgres?

The current time in Shanghai is 2024-03-19 00:43 show timezone +----------+ | TimeZone | |----------| | GMT | +----------+ SELECT CURRENT_DATE AT TIME ZONE 'Asia/Shanghai', CURRENT_TIME AT TIME ZONE 'Asia/Shanghai', CURRENT_TIMESTAMP AT TIME ZONE 'Asia/Shanghai'; +---------------------+-----------------------+---------------------------+ | timezone | timezone…

VIEW QUESTION
Back To Top
Search