adding an auto-incrementing id field to an existing database
| From: | chip | Date: | Tue, 04 Dec 2001 03:08:43 +0000 |
| Subject: | adding an auto-incrementing id field to an existing database | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-14792@lists.php.net to get a copy of this message | ||
I have an existing database, created a while back, which I need to add a id
field to, there isn't one currently. Will simply adding a new auto-increment
field be okay? Will the existing rows receive id numbers and will they be
numbered properly? Or will it start with the new data and continue from
there? I hope you know what I mean.
--
Chip