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
Rinku

2004-06-28, 8:56 am

Thank you.
It worked.

Rinku
--- Jonathan Haddad <jhaddad@superwebstuff.com> wrote:
> I believe the data type needs to be int - unless
> mysql interprets
> auto_increment as a int automatically.
>
> Here's an example from mysql.com
>
>
> CREATE TABLE animals (
> id MEDIUMINT NOT NULL AUTO_INCREMENT,
> name CHAR(30) NOT NULL,
> PRIMARY KEY (id)
> );
> Enjoy.
>
> Jon
>
> On Jun 27, 2004, at 8:25 AM, Daniel Clark wrote:
>
> most other databases.
> increament in a field?
> increament.
> http://www.php.net/unsub.php
>





__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail
Sponsored Links







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

Copyright 2008 codecomments.com