Re: Resetting auto_incremented values
| From: | Andy | Date: | Thu, 20 Jun 2002 18:44:04 +0000 |
| Subject: | Re: Resetting auto_incremented values | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-19921@lists.php.net to get a copy of this message | ||
sorry buddy, as far as I know you can't.
The only thing you can do is to set the counter higher but you can't return
to a value under
the given row.
Please correct me if I am wrong,
Andy
--
----------------------------------------------------
http://www.globosapiens.net
Global Travellers Network!
"Martin Clifford" <MLC1@nrc.gov> schrieb im Newsbeitrag
news:sd11bb35.021@nrcgwia.nrc.gov...
Hi all,
I have a table that has ARTICLE_ID as the primary key, auto_incremented. I
have added three rows to this table, yet I want to delete the third. Here
it is now:
1 - Item 1
2 - Item 2
3 - Item 3
My question is, how do I delete Item 3, without having the next row's index
becoming 4?
1 - Item 1
2 - Item 2
4 - Item 3
Thanks in advance!
Martin