Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8506219
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T02:32:03+00:00 2026-06-11T02:32:03+00:00

Assuming I have a column col1, which contains 5 fixed values I used a

  • 0

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T02:32:04+00:00Added an answer on June 11, 2026 at 2:32 am

    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?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Assuming I have a SQL Server 2005 table with an xml column containing the
Assuming I have two SQL tables consisting of a single column, i.e. Table 1
I have a column that contains address line 2 type values. this column can
i have a huge table which contains millions of records , assuming my natural
I have a SQL Server database that contains an xml column. I need to
Assuming I have a column called A and I want to check if A
Assuming I have the following two JQuery functions - The first, which works: $(#myLink_931).click(function
i have some SQL code that is inserting values from another (non sql-based) system.
Assuming in R, I have a data.frame with the first column representing the time
I have PDF file data in a SQL Server database, in the column type

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.