Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

TIMESTAMP

912971Mar 14 2012 — edited Mar 15 2012
I am trying to insert timestamp values in the database,

e.g. 2012-02-21T10:15:01.000-06:00

insert into table1 (event_time)
values (TIMESTAMP '2012-02-21T10:15:01.000-06:00')

Error: ORA-01861: literal does not match format string

after replacing 'T' with ' ' in the timestamp value,

insert into table1 (event_time)
values (TIMESTAMP '2012-02-21 10:15:01.000-06:00')

it works fine.


What should I do to insert timestamp values with 'T'?

Thanks.
This post has been answered by MichaelS on Mar 14 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 12 2012
Added on Mar 14 2012
4 comments
573 views