ORA-01830: date format picture ends before converting entire input string [message #513759] |
Wed, 29 June 2011 05:26  |
pradies
Messages: 250 Registered: May 2008
|
Senior Member |
|
|
Hi,
I am trying to insert a row in a table and getting the below error.
SQL> insert into tbl_force_charging(ANI, date_time, durations,src, circleid)
2 values ('9569333585','29-JUN-11 03.19.41.000000000 PM','1027','51010','BIR'
)
3 ;
values ('9569333585','29-JUN-11 03.19.41.000000000 PM','1027','51010','BIR')
*
ERROR at line 2:
ORA-01830: date format picture ends before converting entire input string
Table Structure is
Name Null? Type
----------------------------------------- -------- ---------------------------
ANI VARCHAR2(10)
DATE_TIME DATE
DURATIONS VARCHAR2(10)
SRC VARCHAR2(10)
CIRCLEID VARCHAR2(10)
SQL>
Kindly help me in this
Regards
Pradeep
|
|
|
|
|
Re: ORA-01830: date format picture ends before converting entire input string [message #513769 is a reply to message #513763] |
Wed, 29 June 2011 06:05   |
pradies
Messages: 250 Registered: May 2008
|
Senior Member |
|
|
Hi,
When I am using the To_date() function, I am getting the same below error
SQL> l
1 insert into tbl_force_charging(ANI, date_time, durations,src, circleid)
2* values ('9569333585',to_date('29-JUN-11 03.19.41.000000000 PM','DD-MON-YY H
H24:MI:SS'),'1027','51010','BIR')
SQL> /
values ('9569333585',to_date('29-JUN-11 03.19.41.000000000 PM','DD-MON-YY HH24:M
I:SS'),'1027','51010','BIR')
*
ERROR at line 2:
ORA-01830: date format picture ends before converting entire input string
SQL>
Regards
|
|
|
|
Re: ORA-01830: date format picture ends before converting entire input string [message #513775 is a reply to message #513772] |
Wed, 29 June 2011 06:39   |
pradies
Messages: 250 Registered: May 2008
|
Senior Member |
|
|
Hi,
now I changed the Column to timestamp. below is the current table structure.
SQL> desc tbl_force_charging;
Name Null? Type
----------------------------------------- -------- ------------------
ANI VARCHAR2(10)
DATE_TIME TIMESTAMP(6)
DURATIONS VARCHAR2(10)
SRC VARCHAR2(10)
CIRCLEID VARCHAR2(10)
After This using the command, I am facing the error.
SQL> ed
Wrote file afiedt.buf
1 insert into tbl_force_charging(ANI, date_time, durations,src, circleid)
2* values ('9569333585',to_date('29-JUN-11 03.19.41.000000000 PM','DD-MON-YY H
H24:MI:SS'),'1027','51010','BIR')
SQL> /
values ('9569333585',to_date('29-JUN-11 03.19.41.000000000 PM','DD-MON-YY HH24:M
I:SS'),'1027','51010','BIR')
*
ERROR at line 2:
ORA-01830: date format picture ends before converting entire input string
Regards
Pradeep
|
|
|
|
|
|
|
|
|