on 11-10-2009 6:09 AM
Hi Experts,
I referred the below link to insert records into Oracle database.
But I am getting 'date format not recognized' error.
Along with inserting data I've to convert 24Hr time format to 12Hr format before inserting.
So I used yyyy/MM/dd K:mm:ss a in the constant part before the 2nd concat as explained in the link.
I tried yyyy/MM/dd HH:MI:SS AM also.
Please suggest how this error can be resolved.
Thanks,
Vishal
Edited by: Vishal.P.Kulkarni on Nov 10, 2009 7:25 AM
I am able to convert the 24 hr format to 12 hr format (with AM PM in the end) using the below snippet... Check the cases...
yyyy/MM/dd hh:mm:ss a
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In Audit Log:
INSERT INTO Table_Name (PERSON_ID, PUBLISHED_DATE, ID, FLAG) VALUES (902107, TO_DATE(11/09/2009 23:39:19,MM/dd/yyyy hh:mm:ss a), U420273, N)
Unable to execute statement for table or stored procedure. 'Table_Name' (Structure 'StatementName1') due to java.sql.SQLException: ORA-01810: format code appears twice
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.