$query="
CREATE TABLE `$database`. `$tabella` (
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT UNIQUE ,
`utente` VARCHAR( 60 ) NOT NULL ,
`citta` TEXT( 10000 ) NOT NULL UNIQUE,
`info` VARCHAR ( 60 ) NOT NULL,
PRIMARY KEY ( `id` , `citta` )
);
";
ERRORE:
BLOB/TEXT column 'citta' used in key specification without a key length
Come posso fare per risolverlo?
Io voglio far sì che non solo i nomi utenti, ma anche le città siano valori unici