SyCui 发表于 2013-5-23 16:45:47

菜鸟求指导。

create table timetest(
tme date,
tmestp timestamp(3),
tmestp_tz timestamp(3) with time zone,
tmpstp_tzl timestamp(3) with local time zone)                                    
insert into timetest values(sysdate,sysdate,sysdate,sysdate)                                          
select * from timetest
alter session set time_zone='-4:00'
select * from timetest
运行完后为什么一直都是那个结果?时区为什么不会改变?

博森瑞_郭 发表于 2013-5-24 15:51:37

alter database set time_zone='-4:00'      需要重启数据库生效

SyCui 发表于 2013-5-25 01:43:46

博森瑞_郭 发表于 2013-5-24 15:51 static/image/common/back.gif
alter database set time_zone='-4:00'      需要重启数据库生效

懂了,谢谢
页: [1]
查看完整版本: 菜鸟求指导。