|
|
|
|
|
|
Re: Import data type date from excel to oracle [message #577764 is a reply to message #577762] |
Wed, 20 February 2013 05:14   |
ThomasG
Messages: 3211 Registered: April 2005 Location: Heilbronn, Germany
|
Senior Member |
|
|
I just can make out a
to_date('03-Jun-2012','')
behind the error message.
Obviously the format (second parameter) is not present in the generated SQL statements. Where to enter that format in that GUI I have no clue, but the correct SQL should look like:
to_date('03-Jun-2012','dd-mon-yyyy')
|
|
|
|
|
|
Re: Import data type date from excel to oracle [message #577935 is a reply to message #577798] |
Thu, 21 February 2013 20:30   |
 |
mei tambunan
Messages: 37 Registered: February 2013 Location: Medan
|
Member |
|
|
before code of DML
insert into BOOK_ISSUE (ISSUEID,BOOK_ID,MEMBER_ID,DATE_OF_ISSUE,DATE_OF_RETURN,STATUS) VALUES('Issue_00000000000001','B00000001','IF00000001',TO_DATE('03-Jun-2012',''),TO_DATE('05-Jun-2011',''),'Bagus');
and i try to add dd-mon-yyyy this code
insert into BOOK_ISSUE (ISSUEID,BOOK_ID,MEMBER_ID,DATE_OF_ISSUE,DATE_OF_RETURN,STATUS) VALUES('Issue_00000000000001','B00000001','IF00000001',TO_DATE('03-Jun-2012','dd-mon-yyyy'),TO_DATE('05-Jun-2011','dd-mon-yyyy'),'Bagus');
but it still show error like
"Ensure format is entered for datatypes 'DATE' and 'TIMESTAMP' on data type pane"
please give me explanation sir
|
|
|
|
|
|
Re: Import data type date from excel to oracle [message #578049 is a reply to message #578010] |
Sat, 23 February 2013 11:10  |
 |
Littlefoot
Messages: 21761 Registered: June 2005 Location: Croatia, Europe
|
Senior Member Account Moderator |
|
|
Quote:then i install SQL*LOADER etc.
OK; when you ran SQLLDR, you should have created a log file. Open it and check what's in there. You'll see a reason (or reasons) why all these records weren't loaded.
|
|
|