Like Doug suggested, I've found the best way to do this is 2 queries.. 
First 
<cfquery name="foo" datasource="#ds#">
select game_id.nextval as id from dual
</cfquery>

Then store that value in a session variable or however you want to.
Then you can use that to insert into different queries.



On 7/11/05, Aaron Rouse <[EMAIL PROTECTED]> wrote:
> I have yet to see a way of doing this in Oracle/CFQUERY that works in all
> situations. Actually I have yet to see it work, but have heard of it working
> which is why I put "situations"
> 
> On 7/11/05, Russ <[EMAIL PROTECTED]> wrote:
> >
> > Why not just do something like this (sql server)
> >
> > Insert into table (cols) values (values)
> > select @@IDENTITY as maxid
> >
> >
> 
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:211551
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to