MySQL Forums
Forum List  »  Newbie

Re: Cannot create fields in a table
Posted by: Felix Geerinckx
Date: June 09, 2005 03:20AM

crzykle wrote:

> CREATE TABLE `users` (
> `username` VARCHAR( 100 ) NOT NULL AUTO_INCREMENT ,
> `joined_date` DATE( 6 ) NOT NULL ,
> `emailid` VARCHAR( 100 ) NOT NULL AUTO_INCREMENT,
> PRIMARY KEY ( `username` )
> )
>
> MySQL said:
>
>
> #1063 - Incorrect column specifier for column 'username'

You cannot have AUTO_INCREMENT on a VARCHAR.

--
felix
Please use BBCode to format your messages in this forum.

Options: ReplyQuote


Subject
Written By
Posted
Re: Cannot create fields in a table
June 09, 2005 03:20AM


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.