| List: | General Discussion | « Previous MessageNext Message » | |
| From: | Paul DuBois | Date: | May 4 2002 4:16pm |
| Subject: | Re: Get the next AUTO INCREMENT value for a column | ||
| View as plain text | |||
At 9:01 -0700 5/4/02, Son Nguyen wrote: > CREATE table test1 (ID int NOT NULL AUTO INCREMENT, name text, value >text, Primary Key (ID)); > > INSERT into test1 (name, value) values ("test1", "value1"); > > INSERT into test1 (name, value) values ("test2", "value2"); > > DELETE from test1 where ID=2; > > How can obtain the CURRENT value of next ID AUTO INCREMENT value >(which is 3 right now) > > > > > Son Nguyen >mysql, query You can't. AUTO_INCREMENT values are not available until you generate them.
| Thread | ||
|---|---|---|
| • Get the next AUTO INCREMENT value for a column | Son Nguyen | 4 May |
| • Re: Get the next AUTO INCREMENT value for a column | Paul DuBois | 4 May |
| • RE: Get the next AUTO INCREMENT value for a column | Roger Baklund | 4 May |
| • Re: Get the next AUTO INCREMENT value for a column | Harrison C. Fisk | 4 May |
| • Re: Get the next AUTO INCREMENT value for a column | Paul DuBois | 4 May |
| • Re: Get the next AUTO INCREMENT value for a column | Arthur Fuller | 5 May |
| • Re: Get the next AUTO INCREMENT value for a column | Alexander Keremidarski | 6 May |
| • Re: Get the next AUTO INCREMENT value for a column | Rance Hall | 6 May |
