Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Help: To_date() problem in Pro*C ??

Help: To_date() problem in Pro*C ??

From: Mirza Mohsin Beg <mbeg_at_netearnings.com>
Date: Thu, 03 Jun 1999 20:42:26 -0700
Message-ID: <37574B22.657CE810@netearnings.com>

I have the following code (with NLS_DATE_FORMAT set as 'DD-MON-YYYY' in init.ora)

{
exec sql begin declare section
localDateField char[25] = "03-JUN-1999 12:24:34"; localSelectField char[5] = "";
exec sql end declare section

exec sql
select 'x' into :localSelectField
from dual
where trunc(sysdate) = to_date(:localDateField, 'DD-MON-YYYY');

}

This gives me
Ora-01830: date format picture ends before converting entire input string.
What is going on ? What am I doing wrong?

Thanks,

-M
ps: please email me directly also Received on Thu Jun 03 1999 - 22:42:26 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US