You have set the value of the NLS_TIMESTAMP_TZ_FORMAT parameter to YYYY-MMDD. The default format of which two data types would be affected by this setting?
A.
DATE
B.
TIMESTAMP
C.
INTERVAL YEAR TO MONTH
D.
INTERVAL DAY TO SECOND
E.
TIMESTAMP WITH LOCAL TIME ZONE
B and E
B and E are correct
https://tts.inso.tuwien.ac.at/i/doc/XEDEV/xedev_global006.htm
Thanks Vonpire!
E confirm.
SQL> select * from table_tstz;
C_ID
———-
C_TSTZ
—————————————————————————
1
01-JAN-03 02.00.00.000000 AM -07:00
SQL>
SQL> alter session set NLS_TIMESTAMP_TZ_FORMAT=’YYYY-MMDD’;
Session altered.
SQL> select * from table_ts;
C_ID
———-
C_TS
—————————————————————————
1
01-JAN-03 02.00.00.000000 AM
2
01-JAN-03 02.00.00.000000 AM
SQL> select * from table_tstz;
C_ID
———-
C_TSTZ
—————————————————————————
1
2003-0101
BE
BE
http://docs.oracle.com/database/121/NLSPG/ch3globenv.htm#i1007084
B and E
NLS_TIMESTAMP_TZ_FORMAT defines the default date format for the TIMESTAMP and TIMESTAMP WITH LOCAL TIME ZONE data types. It is used with the TO_CHAR and TO_TIMESTAMP_TZ functions.
http://docs.oracle.com/database/121/NLSPG/ch3globenv.htm#GUID-A00DF2B2-2A01-4517-B8DA-D595788F16B5
BE
https://docs.oracle.com/cd/E49329_01/server.121/b71292/refrn10132.htm
BE