Assuming I have a column col1, which contains 5 fixed values
I used a byte field to represent each value in ms sql server
1-value1...5-value5
when I execute the select query, what I am getting is the byte value in gridview
Is there a way so that i can change the output to show the value?
Instead of showing 1 in gridview, I should see value1 in gridview
Use MySQL’s CASE statement to print the string representation instead of the byte value. In case your byte has bits set, one for each value, then you would need to use the bitwise AND to see if a particular bit is set and then print the appropriate string representation. Did I missing something, otherwise?