RE: AUTO_INCREMENT problem in table

2001-07-25 Thread Carsten H. Pedersen
> Dear Peter, > > > Even if i delete the record where id=65535 > > DELETE FROM cust WHERE id=65535 > > AUTO_INCREMENT starts with 65535 and i cant add any more records. > > Sad, but true, MySQL "remembers" the biggest number inserted into an > auto_increment column. If you delete the row in ques

Re: AUTO_INCREMENT problem in table

2001-07-25 Thread ryc
ay, July 25, 2001 12:15 PM Subject: Re: AUTO_INCREMENT problem in table > Dear Peter, > > > Even if i delete the record where id=65535 > > DELETE FROM cust WHERE id=65535 > > AUTO_INCREMENT starts with 65535 and i cant add any more records. > > Sad, but true, MySQL &qu

Re: AUTO_INCREMENT problem in table

2001-07-25 Thread Stefan Hinz
erce solutions GmbH # www.js-webShop.com www.iConnect.de # Gustav-Meyer-Allee 25, 13355 Berlin # Tel: +49-30-46307-382 Fax: +49-30-46307-388 - Original Message - From: "Peter Wiherkoski" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 25, 2001 4:47 PM

Re: AUTO_INCREMENT problem in table

2001-07-25 Thread Paul DuBois
At 4:47 PM +0200 7/25/01, Peter Wiherkoski wrote: >Hi, got a problem: > >My table (part of it) looks like this: >CREATE TABLE cust ( >id SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT, >name CHAR(30) NOT NULL, >PRIMARY KEY (id) >); > >When i type >INSERT INTO cust VALUES(NULL,"Peter"); >the value of id

AUTO_INCREMENT problem in table

2001-07-25 Thread Peter Wiherkoski
Hi, got a problem: My table (part of it) looks like this: CREATE TABLE cust ( id SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT, name CHAR(30) NOT NULL, PRIMARY KEY (id) ); When i type INSERT INTO cust VALUES(NULL,"Peter"); the value of id will increase by 1 every time i insert a record. By "misstak