ENUM value from VIRTUAL COLUMN from another table

i need some help

Screenshot_15.pngScreenshot_16.png

i create virtual column in table "DATA PELAJAR" .i want to used it in another table as ENUM but it not working.. why?

Solved Solved
0 4 194
1 ACCEPTED SOLUTION

I'm not sure why, but it seems to be related to the trailing space you have on all of the values. Try removing that trailing space from every value in your switch expression.

View solution in original post

4 REPLIES 4

How is it not working?

I'm not sure why, but it seems to be related to the trailing space you have on all of the values. Try removing that trailing space from every value in your switch expression.

๐Ÿ˜‚yes you right....lol I intentionally added spaces after each letter for a specific purpose, which is to concatenate the resulting string with another column. I've been stuck on it for an hour. Thanks @Marc_Dillon 

Top Labels in this Space