Re: Cannot create fields in a table
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.
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.