Re: auto_increment value increased from 20 to 32 when I inserted a new row.

2011-09-19 Thread Johan De Meersman
- Original Message - > From: "crocket" > > I had 19 rows in series table. And when I tried inserting the 20th > row, the auto_increment value suddenly increased from 20 to 32, and > the new row has 20 as series_id. The first thing that comes to mind, is tran

auto_increment value increased from 20 to 32 when I inserted a new row.

2011-09-19 Thread crocket
auto_increment value suddenly increased from 20 to 32, and the new row has 20 as series_id. This leap seems to happen on every table. What is the cause of the leap in auto_increment? -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com

setting auto_increment value with a local variable

2010-03-19 Thread Suresh Kuna
Hi, Is there any way to set the auto_increment value with the variable like below. mysql> set @id=10; mysql> alter table suresh_copy auto_increme...@id; ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syn

Re: Auto_Increment value

2005-12-03 Thread Cal Evans
. The problem is that I want to have new automatically generated value back to insert it to another table. How can I have new Auto_Increment value back at the same time I send NULL to it and it is gerenated ? Regards, Danesh -- MySQL General Mailing List For list archives: http

Auto_Increment value

2005-12-03 Thread Danesh Daroui
Auto_Increment value back at the same time I send NULL to it and it is gerenated ? Regards, Danesh

Auto_Increment Value

2005-12-03 Thread Danesh Daroui
Auto_Increment value back at the same time I send NULL to it and it is gerenated ? Regards, Danesh

Re: changing an auto_increment value in innodb

2004-05-30 Thread Daniel Kasak
Gerben Gieling wrote: Dear all, I have an auto_increment value in an innodb table. I recently introduced a new row by mistake and removed it. I beleive I read somewhere in the manual that an innodb table does not reuse this number by default. I also remember vaguely that it is possible to reset

changing an auto_increment value in innodb

2004-05-28 Thread Gerben Gieling
Dear all, I have an auto_increment value in an innodb table. I recently introduced a new row by mistake and removed it. I beleive I read somewhere in the manual that an innodb table does not reuse this number by default. I also remember vaguely that it is possible to reset this next autoincrement

Re: auto_increment value recycled/reset in BDB table? [3.23.46]

2002-02-14 Thread Sinisa Milivojevic
Thank you, we shall investigate this problem. -- Regards, __ ___ ___ __ / |/ /_ __/ __/ __ \/ /Mr. Sinisa Milivojevic <[EMAIL PROTECTED]> / /|_/ / // /\ \/ /_/ / /__ MySQL AB, Fulltime Developer /_/ /_/\_, /___/\___\_\___/ Larnaca, Cyprus <___/ www.mysql.com

auto_increment value recycled/reset in BDB table? [3.23.46]

2002-02-12 Thread Steven Haryanto
i believe since 3.23.39 it should not be? mysql> create table t1_b(i int unsigned primary key auto_increment, j int) type=bdb; mysql> create table t1_m(i int unsigned primary key auto_increment, j int) type=myisam; mysql> insert into t1_bdb(j)values(0); mysql> insert into t1_bdb(j)values(0); my

Re: auto_increment value recycled/reset in BDB table? [3.23.46]

2002-02-12 Thread Steven Haryanto
At 11/02/2002 05:21, Paul DuBois wrote: >At 4:10 +0700 2/11/02, Steven Haryanto wrote: >>i believe since 3.23.39 it should not be? > >BDB and MyISAM tables have different properties with respect to >AUTO_INCREMENT behavior. i see, so this is an "undocumented feature" (i haven't seen this in http

Re: auto_increment value recycled/reset in BDB table? [3.23.46]

2002-02-10 Thread Steven Haryanto
At 11/02/2002 05:21, Paul DuBois wrote: >At 4:10 +0700 2/11/02, Steven Haryanto wrote: >>i believe since 3.23.39 it should not be? > >BDB and MyISAM tables have different properties with respect to >AUTO_INCREMENT behavior. i see, so this is an "undocumented feature" (i haven't seen this in http

Re: auto_increment value recycled/reset in BDB table? [3.23.46]

2002-02-10 Thread Paul DuBois
At 4:10 +0700 2/11/02, Steven Haryanto wrote: >i believe since 3.23.39 it should not be? BDB and MyISAM tables have different properties with respect to AUTO_INCREMENT behavior. > >mysql> create table t1_b(i int unsigned primary key auto_increment, >j int) type=bdb; >mysql> create table t1_m(i

auto_increment value recycled/reset in BDB table? [3.23.46]

2002-02-10 Thread Steven Haryanto
i believe since 3.23.39 it should not be? mysql> create table t1_b(i int unsigned primary key auto_increment, j int) type=bdb; mysql> create table t1_m(i int unsigned primary key auto_increment, j int) type=myisam; mysql> insert into t1_bdb(j)values(0); mysql> insert into t1_bdb(j)values(0); my

RE: Next auto_increment value?

2002-02-01 Thread Rick Emery
$recno LIMIT 1"; $result = mysql_query($query) or die("Error: ".mysql_error()); ?> -Original Message- From: Zak Grant [mailto:[EMAIL PROTECTED]] Sent: Friday, February 01, 2002 6:08 AM To: [EMAIL PROTECTED] Subject: Next auto_increment value? All, I'm a

Next auto_increment value?

2002-02-01 Thread Zak Grant
All, I'm a little (lot!) stuck on generating what seems to be quite a simple query... Example: I have a table with ID as auto_increment It contains values 1 to 10 I delete #7 How can I, using MySQL, say "I have the number 6 - what's the next valid ID up/down from this?" I'm looking for, quite

Re: Auto_increment value

2001-05-14 Thread ryc
Refer to the man page for myisamchk ryan > Hi, > > how I can change AUTO_INCREMENT value for one concrete table in mysql > database? (e. g., this value you can get from 'show table status'). Thanx! > > oSup > > > > e-mail:

Auto_increment value

2001-05-14 Thread oSup
Hi, how I can change AUTO_INCREMENT value for one concrete table in mysql database? (e. g., this value you can get from 'show table status'). Thanx! oSup e-mail: [EMAIL PROTECTED] ICQ: 10798264 tel.: 0608/974782 SMS: [EMAIL

Re: AUTO_INCREMENT value

2001-05-14 Thread oSup
Hi, how I can change AUTO_INCREMENT value for one concrete table in mysql database? (this value you can get from 'show table status'). Thanx! oSup e-mail: [EMAIL PROTECTED] ICQ: 10798264 tel.: 0608/974782 SMS: [EMAIL