Re: Auto inc in MySQL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Tris,

 make the the field, id_number, an auto_increment field.






php-db-return-29162-DPGirago=mdanderson.org@lists.php.net on 07/09/2003 07:44:34
AM

To:   php-db@lists.php.net
cc:    (bcc: David P. Giragosian/MDACC)

Subject:   Auto inc in MySQL



I know I'll get flamed for askign such a simple question, but here goes...

I have a MySQL DB and wanna increment a field 'id_number' by one each
time, to avoid creating duplicates...
I've done it before, but can't remember how...
Any ideas?

Tris...

*********************************************************************
The information contained in this e-mail message is intended only for
the personal and confidential use of the recipient(s) named above.
If the reader of this message is not the intended recipient or an agent
responsible for delivering it to the intended recipient, you are hereby
notified that you have received this document in error and that any
review, dissemination, distribution, or copying of this message is
strictly prohibited. If you have received this communication in error,
please notify us immediately by e-mail, and delete the original message.
***********************************************************************







-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux