I can easily insert into database for enum columns or update them via enum index...
For example I have an enum column ('first','second','third') => (0,1,2)!
When I want to insert first for column , I will pass the 0 to insert and like this for other values....
How can I get the values now?
For example
SELECT * FROM table WHERE primary_id = 1
Now I want to get the enum column value index of this row. if the enum column value is 'second', how can I get index 1?