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

Home -> Community -> Usenet -> c.d.o.server -> Re: JDBC OCI and NLS_DATE_FORMAT

Re: JDBC OCI and NLS_DATE_FORMAT

From: Martin Haltmayer <Martin.Haltmayer_at_0800-einwahl.de>
Date: Fri, 20 Apr 2001 18:13:26 +0200
Message-ID: <3AE06026.83810FA0@0800-einwahl.de>

I guess the alter session does not work because it is dynamic SQL, not a query. If you have a method for executing PL/SQL procedures you could try

dbms_utility.exec_ddl_statement ('alter session set nls_date_format = ''dd/mm/yyyy''')

Martin

chazalet wrote:
>
> Hi,
>
> Configuration : Oracle Client 8.1.6 -Solaris 2.7
> JDBC OCI.
> stmt.executeQuery("alter session set NLS_DATE_FORMAT='DD/MM/YYYY'")
> doesn't work.
> The date format by default with JDBC OCI is :
> YYYY-MM-DD HH:MM:SS.0
> I don't want to use the function TO_CHAR on every date columns.
> ??????
>
> Thanks in advance
>
> Sylvie
Received on Fri Apr 20 2001 - 11:13:26 CDT

Original text of this message

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