in reply to Re: Oracle Dates DBD
in thread Oracle Dates DBD
Eh? Placeholders do work in selects. That last example will take a string (in dd-mon-yyyy format), convert and convert it into a date. The database will then return the result of this, but as a string, using the default database format.
So if NLS_DATE_FORMAT has been set as in the previous messages, then select to_date(?, 'dd-mon-yyyy') from dual; will convert a parameter of '12-aug-2002' into '2002-08-12 00:00:00' (since there's no time component, it'll use midnight, and return all zeros)
--
Tommy
Too stupid to live.
Too stubborn to die.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Oracle Dates DBD
by Ryszard (Priest) on Aug 12, 2002 at 15:24 UTC | |
by tommyw (Hermit) on Aug 12, 2002 at 15:29 UTC |