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 -> Re: Trigger Problems with to_date()

Re: Trigger Problems with to_date()

From: clando <clandos_at_yahoo.com>
Date: Mon, 12 Jan 2004 21:51:22 +0100
Message-ID: <btv1ch$7d8$07$1@news.t-online.com>

"Sybrand Bakker" <gooiditweg_at_sybrandb.demon.nl> schrieb im Newsbeitrag news:mbo5005hn6rmav0ral2qtsm97vb5cvb4or_at_4ax.com...
> On Mon, 12 Jan 2004 17:38:30 +0100, "clanos" <clandos_at_yahoo.com>
> wrote:
>
> >I still get the same error message
> >"[1]: (Error): ORA-01830: date format picture ends before converting
entire
> >input string"
> >
> >What am I doing wrong?
>
> Not reading the documentation of the to_date function. The default
> format is dd-mon-yy, if you are using a different format you need to
> specify that in the to_date function.

I did! didn't you see this?

   :new.von := to_date(:new.von,'dd/mm/yyyy hh24:mi:ss');   :new.bis := to_date(:new.bis,'dd/mm/yyyy hh24:mi:ss');

> A far more better solution would be to set the nls_date_format
> environment variable/registry variable on the client, the 'solution'
> you are developing now is cumbersome, and requires too much
> maintenance.
>
>
> --
> Sybrand Bakker, Senior Oracle DBA
Received on Mon Jan 12 2004 - 14:51:22 CST

Original text of this message

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