pessoal,
estou tentando alterar uma tabela no mysql.
na verdade, eu tenho um campo dop tipo char(50) e quero que este campo tenha valores únicos. Entretanto quando tento executar a alteração, surge um erro.
o sql que o mysql gera é o seguinte:
ALTER TABLE odontomy.cirurgia MODIFY COLUMN prontuario CHAR(50) UNICODE CHARACTER SET ucs2 COLLATE ucs2_general_ci NOT NULL DEFAULT ‘’;
e o erro é o seguinte:
mySQL error number 1064
you have an error in your syntax; check the manual that corresponds your MySQL server version for the rigth syntax to use near CHARACTER ucs2 COLLATE ucs2_general_ci NOT NULL DEFAULT “” at line 1
Obrigado