Re: auto increment
| From: | Martín Marqués | Date: | Fri, 07 Sep 2001 22:02:07 +0000 |
| Subject: | Re: auto increment | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-66492@lists.php.net to get a copy of this message | ||
On Vie 07 Sep 2001 19:01, nate@1feehosting.com wrote:
> you know how, if you make a field a primary key and have it auto
> increment... then if you delete an entry and add a new one it makes the
> field 2 instead of 1... i know thats explained bad but do you know what i
> mean? is there a way to make it go back to 1 as if there were never any
> fields entered?
Man, this is a PHP list, not an SQL list.
Any way, you never said what Database server you are using, and the auto
incrementals work differently on Oracle, PostGreSQL, MySQL or Informix.
Saludos... :-)
--
Porqué usar una base de datos relacional cualquiera,
si podés usar PostgreSQL?
-----------------------------------------------------------------
Martín Marqués | mmarques@unl.edu.ar
Programador, Administrador, DBA | Centro de Telematica
Universidad Nacional
del Litoral
-----------------------------------------------------------------