Run show create table TABLENAME
afterwards to verify the data type has changed.
MySQL - Change index column VARCHAR length?
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.
Lösung
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow