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!

datatypes for time and date data

1054509Dec 3 2013 — edited Dec 4 2013


hi, i was looking for some help in regards to adding data that has time and date values but im not sure if i have added the right datatypes as whenever i insert the data i dont get the same data output.

the following is my create table query:

CREATE TABLE table1
(

Time_Key varchar (255),

Begin_Time timestamp(6),

Abandoned interval day(0) to second(6)

)


an example of the data that i am trying to add looks like the following:

TimeKey: 201311110000GMT
Begin Time: 11/11/2013  00:00:00

Abandoned: 00:00:00

but once i input this data through sql developer the output i get is the following which isnt correct.

TimeKey: 201311110000GMT
Begin Time: 11-NOV-2013
Abandoned: 01-DEC-2013

not sure where i am going wrong, any advice would be really appreciated.

Thanks in advance.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 1 2014
Added on Dec 3 2013
7 comments
493 views