RE: ensuring that I'm getting the correct "last insert ID"

2002-05-03 Thread sean . odonnell
Thanks jeff, thats a question thats been bugging me for a while. -Original Message- From: Jeff Kilbride [mailto:[EMAIL PROTECTED]] Sent: 02 May 2002 10:24 To: Sean O'Donnell; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: ensuring that I'm getting the correct "last in

Re: Re: Re: ensuring that I'm getting the correct "last insert ID"

2002-05-02 Thread Jonnycattt
Gotcha. So far, selecting the last_insert_id() is working. I'll see what the CF forums have to say. thanks. --- Original Message From: "Jeff Kilbride" To: "Jonnycattt" CC: Subject: Re: Re: ensuring that I'm getting the correct "last insert I

Re: ensuring that I'm getting the correct "last insert ID"

2002-05-02 Thread Jeff Kilbride
pool, you will be fine. --jeff - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, May 02, 2002 8:36 AM Subject: RE: ensuring that I'm getting the correct "last insert ID" > if you are using a conn

RE: ensuring that I'm getting the correct "last insert ID"

2002-05-02 Thread sean . odonnell
]] Sent: 02 May 2002 08:36 To: Sean O'Donnell; [EMAIL PROTECTED] Subject: Re: ensuring that I'm getting the correct "last insert ID" But would the same instance of a script drop and pick up different connections? I haven't done any Java/MySQL work, but anything I've

Re: ensuring that I'm getting the correct "last insert ID"

2002-05-02 Thread denonymous
> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, May 02, 2002 11:28 AM Subject: RE: ensuring that I'm getting the correct "last insert ID" > its used a lot by java. As setting up and closing down connections to the > database > is relatively expen

Re: ensuring that I'm getting the correct "last insert ID"

2002-05-02 Thread Alec . Cawley
You should not SELECT MAX(userID), you should SELECT LAST_INSERT_ID(), which gives you tha last id *generated by your connection* regarless of any others, This is general purpose. If you are willing to be MySQL specific, both C and Java (and, I presume, other languages) allow you to retrieve th

RE: ensuring that I'm getting the correct "last insert ID"

2002-05-02 Thread sean . odonnell
ubject: Re: ensuring that I'm getting the correct "last insert ID" Admittedly, I'm no expert. What *is* connection pooling? - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, May 02, 2002 11:21 AM Su

Re: ensuring that I'm getting the correct "last insert ID"

2002-05-02 Thread denonymous
Admittedly, I'm no expert. What *is* connection pooling? - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, May 02, 2002 11:21 AM Subject: RE: ensuring that I'm getting the correct "last inser

RE: ensuring that I'm getting the correct "last insert ID"

2002-05-02 Thread sean . odonnell
what happens if you are using connection pooling though? -Original Message- From: denonymous [mailto:[EMAIL PROTECTED]] Sent: 02 May 2002 08:09 To: [EMAIL PROTECTED] Subject: Re: ensuring that I'm getting the correct "last insert ID" From: "Jonnycattt" <

Re: ensuring that I'm getting the correct "last insert ID"

2002-05-02 Thread denonymous
From: "Jonnycattt" <[EMAIL PROTECTED]> > Hi all, > I know this has been asked a bunch of times, but i need some clarity (new > mySQL user). > I have an app that inserts a new user into one table, then inserts some user > preferences into another table. the procedure is as follows: > 1) insert new