Oracle 9i and I will have to check when at work as to what it is on the CF side, but I am pretty sure it is the native CF/Oracle JDBC driver and think I tested that on CFMX 6.1
On 6/7/05, James Holmes <[EMAIL PROTECTED]> wrote: > > Which version of Oracle and which driver are you using? > > We are on 9i and we use the native CF/Oracle JDBC driver (i.e. > DataDirect) that comes with Enterprise. It may not work in the thin > driver or other flavours. > > -----Original Message----- > From: Aaron Rouse [mailto:[EMAIL PROTECTED] > Sent: Wednesday, 8 June 2005 12:16 > To: CF-Talk > Subject: Re: Get New Record ID in ORACLE > > Syntax like that throws an error for me when tried in a cfquery. > > On 6/7/05, James Holmes <[EMAIL PROTECTED]> wrote: > > > > This would work in a cfquery: > > > > DECLARE newid NUMBER; > > BEGIN > > select s.nextval into newid from dual; .... etc END; > > > > but I don't know why you would bother. Since you need the PL/SQL block > > > you may as well store the prodecure instead so you can get back the > > id, which was the point in the first place. Or just use the two > > queries like > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209075 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

