For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > June 2004 > Re: [PHP-DB] Auto increament









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PHP-DB] Auto increament
Larry E . Ullman

2004-06-27, 8:55 am

> Can any of you guide me how to do auto increament in a field?
> I think there is one datatype for auto increament.
> But I dont know how to do it ?


I'd start by reading the manual and documentation for the database
application being used. But, generally, auto incremented fields are
primary keys, unsigned, not null integers. For MySQL, in particular,
you define a field as auto increment by using AUTO_INCREMENT. Again,
you can see the manual for more.

Larry
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com