David Cantrell <[EMAIL PROTECTED]> writes: > Unfortunately no. You'd have to: > LOCK the table > SELECT the maximum id currently in use and add one > INSERT with that id > UNLOCK the table > so all your other queries will block until the table is unlocked. Create a 'seq' table associated with each table that needs autoincrement. LOCK that table. SELECT the one entry that is the next value in the sequence. UPDATE the entry with an incremented value. UNLOCK the sequence table INSERT into data table using the id you got from the other table. Which looks to me like it should be faster. -- Piers Cawley www.iterative-software.com
- MySQL -> Oracle wrapper/compat. libs Paul Makepeace
- Re: MySQL -> Oracle wrapper/compat. libs Dominic Mitchell
- Re: MySQL -> Oracle wrapper/compat. libs James Powell
- Re: MySQL -> Oracle wrapper/compat. libs Paul Makepeace
- Re: MySQL -> Oracle wrapper/compat. libs David Cantrell
- Re: MySQL -> Oracle wrapper/compat. l... Mark Fowler
- Re: MySQL -> Oracle wrapper/comp... Leon Brocard
- Re: MySQL -> Oracle wrapper/comp... David Cantrell
- TPC5 Attendees Barbie
- Re: MySQL -> Oracle wrapper/... Piers Cawley
- Re: MySQL -> Oracle wrap... Paul Makepeace
- Re: MySQL -> Oracle wrap... Robin Szemeti
- Re: MySQL -> Oracle wrap... Paul Makepeace
- Re: MySQL -> Oracle wrap... Robin Szemeti
- Re: MySQL -> Oracle wrap... Mark Fowler
- Re: MySQL -> Oracle wrap... Leon Brocard
- Re: MySQL -> Oracle wrap... Simon Cozens
- Re: MySQL -> Oracle wrap... Robin Szemeti
- Re: MySQL -> Oracle wrap... Mike Jarvis
- Re: MySQL -> Oracle wrap... Paul Makepeace