I have MySQL and a query:
select name,re_type from myTable
I want to replace all values of type:
1 = student 2 = teacher
Thus, the result should be:
name re_type --------------- Ron Student Mac Teacher
I do not like:
name re_type --------------- Ron 1 Mac 2
Is it possible to make such a query to get the desired result in MySQL?
source share