Re: ID in table

2002-01-19 Thread Victoria Reznichenko

DL,

Friday, January 18, 2002, 1:25:11 AM, you wrote:

DN KISS principle!
...

You can also examine the -A option of myisamchk.

  -A, --set-auto-increment[=value]
  Force auto_increment to start at this or higher value
  If no value is given, then sets the next auto_increment
  value to the highest used value for the auto key + 1.


DN =dn

-- 
For technical support contracts, goto https://order.mysql.com/
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___ ___   __
  /  |/  /_ __/ __/ __ \/ /Victoria Reznichenko
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
   ___/   www.mysql.com





-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




ID in table

2002-01-17 Thread Jure Grom

Is there any way to start Ids in table from some number for exampl 1
with function auto_increment and not from 1? 

 

tnx

jure


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




FW: ID in table

2002-01-17 Thread Carsten H. Pedersen

 Is there any way to start Ids in table from some number for exampl 1
 with function auto_increment and not from 1? 
 
http://www.bitbybit.dk/mysqlfaq/faq.html#ch6_4_0

/ Carsten
--
Carsten H. Pedersen
keeper and maintainer of the bitbybit.dk MySQL FAQ
http://www.bitbybit.dk/mysqlfaq


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




RE: ID in table

2002-01-17 Thread Mike Grabski

I believe auto_increment uses the last highest value inserted into the
record. So if your first insert is 1000, it will count up from 1000 there on
after. Correct me if wrong.

Mike

-Original Message-
From: Jure Grom [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 17, 2002 3:56 PM
To: MySQL - List
Subject: ID in table


Is there any way to start Ids in table from some number for exampl 1
with function auto_increment and not from 1? 

 

tnx

jure


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail
[EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




RE: ID in table

2002-01-17 Thread Peter Dunham

It's messy but you can also insert x rows, then delete x rows and the next
row inserted will have id x+1 assuming that you started with 0 rows.


--
Peter Dunham
Ellipse Media
t. +44 (0)20 8656 0950
---

-Original Message-
From: Mike Grabski [mailto:[EMAIL PROTECTED]]
Sent: 17 January 2002 21:24
To: 'Jure Grom'
Cc: MySQL - List
Subject: RE: ID in table


I believe auto_increment uses the last highest value inserted into the
record. So if your first insert is 1000, it will count up from 1000 there on
after. Correct me if wrong.

Mike

-Original Message-
From: Jure Grom [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 17, 2002 3:56 PM
To: MySQL - List
Subject: ID in table


Is there any way to start Ids in table from some number for exampl 1
with function auto_increment and not from 1?



tnx

jure


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail
[EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail
[EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: ID in table

2002-01-17 Thread DL Neil

People,

KISS principle!

Please research Table Options in 6.5.3  CREATE TABLE Syntax because this can be done 
when you set up/re-create
or ALTER the table, without fuss...

Regards,
=dn


- Original Message -
From: Peter Dunham [EMAIL PROTECTED]
To: Mike Grabski [EMAIL PROTECTED]; 'Jure Grom' [EMAIL PROTECTED]
Cc: MySQL - List [EMAIL PROTECTED]
Sent: 17 January 2002 22:43
Subject: RE: ID in table


 It's messy but you can also insert x rows, then delete x rows and the next
 row inserted will have id x+1 assuming that you started with 0 rows.


 --
 Peter Dunham
 Ellipse Media
 t. +44 (0)20 8656 0950
 ---

 -Original Message-
 From: Mike Grabski [mailto:[EMAIL PROTECTED]]
 Sent: 17 January 2002 21:24
 To: 'Jure Grom'
 Cc: MySQL - List
 Subject: RE: ID in table


 I believe auto_increment uses the last highest value inserted into the
 record. So if your first insert is 1000, it will count up from 1000 there on
 after. Correct me if wrong.

 Mike

 -Original Message-
 From: Jure Grom [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 17, 2002 3:56 PM
 To: MySQL - List
 Subject: ID in table


 Is there any way to start Ids in table from some number for exampl 1
 with function auto_increment and not from 1?



 tnx

 jure


 -
 Before posting, please check:
http://www.mysql.com/manual.php   (the manual)
http://lists.mysql.com/   (the list archive)

 To request this thread, e-mail [EMAIL PROTECTED]
 To unsubscribe, e-mail
 [EMAIL PROTECTED]
 Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

 -
 Before posting, please check:
http://www.mysql.com/manual.php   (the manual)
http://lists.mysql.com/   (the list archive)

 To request this thread, e-mail [EMAIL PROTECTED]
 To unsubscribe, e-mail
 [EMAIL PROTECTED]
 Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php


 -
 Before posting, please check:
http://www.mysql.com/manual.php   (the manual)
http://lists.mysql.com/   (the list archive)

 To request this thread, e-mail [EMAIL PROTECTED]
 To unsubscribe, e-mail 
[EMAIL PROTECTED]
 Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php





-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php