MySQL Forums
Forum List  »  General

Re: how to create an autonumber field?
Posted by: hossein haghparast
Date: February 17, 2005 03:25AM

you can use auto_increment for this propose. then mysql add numers to that fiels. for example you can use this :

CREATE TABLE menu numara int(10) unsigned auto_increment PRIMARY KEY not null

Hossein Haghparast, Ankara University Ph.D student in Economics
http://www.yeksite.com/

Options: ReplyQuote


Subject
Written By
Posted
Re: how to create an autonumber field?
February 17, 2005 03:25AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.