oracle newbie needs function advice
From: Ann <annterrell_at_home.com>
Date: 12 Jul 2001 08:51:19 -0700
Message-ID: <5e9eb3ff.0107120751.34ff813b_at_posting.google.com>
Date: 12 Jul 2001 08:51:19 -0700
Message-ID: <5e9eb3ff.0107120751.34ff813b_at_posting.google.com>
I have some code which works on SQL server:
<CFQUERY name="get_orderNo" datasource = "#Variables.DSN#">
The orderNo variable gets set based on the result:
<cfif get_orderNo.next IS "">
SELECT Max(orderNo) AS next
FROM slides
WHERE chapterID = #chapterNo#
</CFQUERY>
<cfset next = 1>
<cfelse>
<cfset next = get_orderNo.next + 1>
</cfif>
This doesn't seem to work on a site running Oracle. Does the Max function work with Oracle? Or is there some other problem with the code? Case sensitivity? Received on Thu Jul 12 2001 - 17:51:19 CEST