我有一个列"last_status_change_date“,其中包含GMT时间戳中的数据。我需要将这些数据转换成"GMT-6“..How我能做到吗?select last_status_change_date from bss_calling_card where card_sn ='030400091074';
last_status_change_date
我的团队在2个不同时区的相同数据库上运行相同的查询。查询返回不同的结果。我认为其中一个原因是我使用以下命令将时间戳列转换为日期: to_char(a.event_timestamp,'yyyy-mm-dd'::text) AS "date“ 此转换是否取决于系统的本地日期和时间我正在测试数据库中以前的数据范围。