What about:
INSERT INTO Widgets(....)
RETURNING key AS newID
I've never tried to use it within a <cfquery>, but it works fine in
storedProcs. (Which, btw, I recommend you use over inline queries)
-Adam
On 11/3/05, Cornillon, Matthieu (Consultant)
<[EMAIL PROTECTED]> wrote:
> I LOVE DUAL!
>
> Thanks! I'll be doing more research on this.
>
> Matthieu
>
> Deanna Schneider wrote:
>
> You're new to dual? Dual is just a wonderful little "widget" that acts
> like a one row "table," but the column is arbitrary. You can do all
> sorts of stuff with it:
>
> select sysdate from dual;
>
> select 1 + 1 from dual;
>
> select 'I am not a crook' from dual;
>
> select ucase('malkjdflajldjflajdlfj') from dual;
>
> You get the idea.
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:223076
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