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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -