I created a table as
create table TT(time timestamp(6));
Now I want to insert row in this table and I don`t want to use to_timestamp function with format_model to do this.
So I checked the timestamp_format from the view v$nls_parameters
NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
insert into TT values('12-MAR-13 12.10.11.234567');
It inserted one row because the
pattern of character
string '12-MAR-13 12.10.11.234567' matches to that of DD-MON-RR HH.MI.SSXFF AM.
Now I tried some variation
insert into TT values('12-MAR-13 12:10:11.234567');
It worked , but I thought It will not work as I have used colon rather than period symbol to separate hour,minute and second.
insert into TT values('12-MAR-13 12-10-11.234567');
This also works ,again it works I thought It will not work for same reason (using hyphen in place of period).
insert into TT values('12:MAR:13 12-10-11.234567');
This also works.
insert into TT values('12-MAR-13 12:10:11:234567');
But this does not work.
Can you tell how and when variation is allowed and when you have to be dead right.
Shukran