Click here to Skip to main content
15,891,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
While I am importing data from csv file to Oracle DB table , I am facing "date format pictures end before converting entire input string. " error.Below is my insert command

Insert into tbl_ivr_summenuhits_3(DateTime,LocationId,ParentMenu,MemuId,TotalHits)
values (to_date('21-Aug-2017 12:00:00 AM 'dd-mon-yyyy'),'MUM','Credit-Card_MM_Dn','Block_Dn',2.0);

In the CSV file DateTime column datatype is Date .

What I have tried:

Rightclick on Table->Next->Generate insert script->Next->Checked all the columnName-> formt DD-MM-YYYY->Verify(Success)->finish.

Also I tried
Alter session set NLS_DATE_FORMAT='DD-MON-YYYY HH24:MI:SS';
Posted
Comments
Richard Deeming 25-Aug-17 11:54am    
Your to_date call looks wrong - there should be a single quote and a comma after AM and before 'dd:
to_date('21-Aug-2017 12:00:00 AM', 'dd-mon-yyyy'),


Is that a typo in your question, or is that really the code you're trying to run?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900