For example, suppose I have a TINYINT column that I want to change into an ENUM. Is it possible to write a MySQL query that changes the datatype of the column while mapping the existing data so that (for example) 0 becomes No, 1 becomes Yes, and 2 becomes Maybe?
For example, suppose I have a TINYINT column that I want to change into
Share
I’m not sure if this is possible in MySQL, but an alternative solution would be to: