phpmyadmin does wrong

Status
Not open for further replies.

galaxyAbstractor

Community Advocate
Community Support
Messages
5,508
Reaction score
35
Points
48
I want to make a table with 2 rows and 1 is auto increment. I used the phpMyAdmin UI, I didn't put any SQL in it and it says:

CREATE TABLE `test`.`gadget` ( `gcode` VARCHAR( 20000 ) NOT NULL ,
`id` VARCHAR( 20000 ) NOT NULL AUTO_INCREMENT ,
PRIMARY KEY ( `id` )
) ENGINE = MYISAM
MySQL sa:
#1063 - Incorrect column specifier for column 'id'
^^This is what PhpMyAdmin does after I press save^^

Is it a fault in my phpMyAdmin installation?

But if I do without auto_increment it works...
 

galaxyAbstractor

Community Advocate
Community Support
Messages
5,508
Reaction score
35
Points
48
Fixed. I just understanded it wrong. I thought if it was INT(11) it meant that number 11 was the largest number it could hold...
 
Status
Not open for further replies.
Top