Armando Cerna writes:
> update customers set row_id='1000' where row_id='1';
>
> but that only changed the one field in the table and the other ones stayed
> the same =(.
Yes, that's the expected behavior when updating one field. Anything
else would be a disaster. If what you're trying to do is a renumbering
of the rows (something that there is little point in doing if you
designed your database correctly), you'll have to do it manually.
Normally it would involve a lot more than just changing one column
in one table, and it may even be impossible due to uniqueness
constraints.
What auto_increment does is this: "When you insert a value of NULL
(recommended) or 0 into an AUTO_INCREMENT column, the column is set
to value+1, where value is the largest value for the column currently
in the table."
//C
--
Carl Troein - Círdan / Istari-PixelMagic - UIN 16353280
[EMAIL PROTECTED] | http://pixelmagic.dyndns.org/~cirdan/
Amiga user since '89, and damned proud of it too.
---------------------------------------------------------------------
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