Frage

I currently have a table with an index column the unique index column "name". Currently the column "name" is a varchar with length 25. I would like to increase this to 50. I'm attempting to use

alter table `meal_prices` modify `name` varchar(50);

to do this. However, this doesn't seem to affect the column. I have a feeling this isn't working because the column is an index column, but I'm not sure. Any suggestions? Thank you much.

War es hilfreich?

Lösung

Run show create table TABLENAME afterwards to verify the data type has changed.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top