Munson, Jacob wrote: > In that Blog entry, he's using last_insert_id(), which is a mysql > function, so no CF can't do it on it's own. I still say the way that > Oracle and Postgres does this is the best. Before you do an insert, > you > can select the next available ID, and this ID can NEVER be used by > anybody else (selecting it basically generates it for use). Then use > that ID in your insert.
In PostgreSQL an even better trick is to use "INSERT ... RETURNING *" which will result the complete record you just inserted. Jochem ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:263018 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

