oracle - Varchar2 datatype allows systimestamp -
i have 1 table varchar2 datatypes below
create table t11 (aa varchar2(100),bb varchar2(100));
now, if trying insert systimestamp
above, values getting inserted:
insert t11 values (systimestamp,systimestamp); commit;
question why conversion allowed in oracle.
i using oracle 11g.
your column type varchar2
, return type of systimestamp
timestamp
. timestamp
can not stored directly varchar2
column, oracle implicitly convert timestamp
value varchar2
rule specified in init parameter, nls_timestamp_format
.
you can read data conversion rules , nls_timestamp_format more detail.
Comments
Post a Comment