Hi Khurram,
This is we normally do:
First we run the help session to see the current setting;
help session;
You can set the default time zone at DBS control or User level when you create user (TIME ZONE = LOCAL,sign 'time_zone_string','quotestring',NULL) or
SET TIME ZONE LOCAL ,SET TIME ZONE USER ,SET TIME ZONE INTERVAL ‘00:00’ HOUR TO MINUTE
So when you create table with data type TIMESTAMP(0) WITH TIME ZONE and insert values like (TIMESTAMP '2013-12-03 10:30:00'), you can see the result of it.
Now when you want with TIMESTAMP(0) then you can cast with ----CAST(timestmp_with_zone AS TIMESTAMP(0) when you select.
You can try and do other settings too.
example:
ct rkt_test
(geo_id CHAR(3),
timestmp_with_zone TIMESTAMP(0) WITH TIME ZONE);
Cheers,
Raja
Hi Khurram,
This is we normally do:
First we run the help session to see the current setting;
help session;
You can set the default time zone at DBS control or User level when you create user (TIME ZONE = LOCAL,sign 'time_zone_string','quotestring',NULL) or
SET TIME ZONE LOCAL ,SET TIME ZONE USER ,SET TIME ZONE INTERVAL ‘00:00’ HOUR TO MINUTE
So when you create table with data type TIMESTAMP(0) WITH TIME ZONE and insert values like (TIMESTAMP '2013-12-03 10:30:00'), you can see the result of it.
Now when you want with TIMESTAMP(0) then you can cast with ----CAST(timestmp_with_zone AS TIMESTAMP(0) when you select.
You can try and do other settings too.
example:
ct rkt_test
(geo_id CHAR(3),
timestmp_with_zone TIMESTAMP(0) WITH TIME ZONE);
Cheers,
Raja