|
|||||||
|
|
|
![]() |
|
|
Strumenti |
|
|
#1 |
|
Bannato
Iscritto dal: Jun 2009
Città: Roma
Messaggi: 102
|
[MySql] Problema ad inserire un indice su un campo di una tabella.
Ho una tabella e voglio indicizzarne un campo, se faccio così mi dà un errore e non capisco perchè...cosa sbaglio nella sintassi?
Codice:
mysql> CREATE INDEX Comune_Index USING unique ON comuni(comune); ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use n ear 'unique ON comuni(comune)' at line 1 Andrea |
|
|
|
|
|
#2 | |
|
Senior Member
Iscritto dal: Jun 2007
Città: Milano
Messaggi: 413
|
Dal manuale di mysql:
Quote:
Forse volevi scrivere: CREATE UNIQUE INDEX Comune_Index ON comuni(comune); Ciao! |
|
|
|
|
|
| Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 13:25.



















