Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Question about DATE conversion in Stored Procedure
On Thu, 13 Apr 2000 23:42:33 GMT, "John Thomas" <Sadly_Mistaken_at_potato.mindless.com> wrote:
>a) Change the NLS_DATE_FORMAT setting within the scope of my stored
>procedure
I believe that you could issue an ALTER SESSION SET NLS_DATE_FORMAT = 'xxxxx' from within your stored procedure. You would need to issue that statement using dyn sql. You should also look at the DBMS_SQL.DESCRIBE_COLUMNS procedure. You can use it to get the datatypes of the columns that you are querying. Then you can retrieve dates directly into date fields, and convert them using to_char.
regards,
Jonathan