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 -> cf query - wanting to set nls date

cf query - wanting to set nls date

From: mike <hillmw_at_charter.net>
Date: 26 Jul 2005 16:55:29 -0700
Message-ID: <1122422129.254182.49640@f14g2000cwb.googlegroups.com>


I have a cf query where i want to set the date format before the query executes.

<CFQUERY NAME="RptQry" datasource="#ds#" username="#user#"
password="#pass#">
alter session set NLS_DATE_FORMAT = 'MM/DD/YYYY'; select * from abc where mydate='7/27/2005';
</CFQUERY>

I am getting an error here, not being able to put these together.

My query is using the date format '7/27/2005', but the sql is expecting it to be '27-Jul-2005'.

I'd like to be able to alter the session before this sql runs.

Is there a better way? Received on Tue Jul 26 2005 - 18:55:29 CDT

Original text of this message

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