0
Good morning,
I recently started on mysql server and is giving an error q for more q look for no solution arrangement:
My code is:
CREATE TABLE usuarios(
codigo VARCHAR(30) NOT NULL AUTO_INCREMENT,
PRIMARY KEY(codigo))
ENGINE= InnoDB
DEFAULT
chartset=utf8
COLLATE=utf8_general_ci
And as much as I try other alternatives I can’t find solution the error is always the same
Incorrect collum for a specifier for collum 'codigo'
If anyone knows how to solve this mistake I appreciate the help :)
You have a column
varchar
which is self incremental. It doesn’t make sense. To beauto_increment
needs to beint
or variation of it– Woss