in reply to SQL unique IDs and Sessions (was: yesterday I posted this and you all aksed for more info so ........)
Update: Don't know if it's possible two copies of this script could run at the same time, but you might have a problem with two different sessions creating the same new session id at once. Might be better for you to do something like:
... or anything else that does proper locking.insert into sessions (session_id, session_date) select max(session_id)+1, ? from sessions
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(crazyinsomniac: bad advice) Re:^2 yesterday I posted this and you all aksed for more info so ........
by crazyinsomniac (Prior) on May 11, 2001 at 13:26 UTC | |
|
Re: Re: yesterday I posted this and you all aksed for more info so ........
by esolm (Acolyte) on May 10, 2001 at 22:47 UTC |