2 Replies - 420 Views - Last Post: 01 March 2018 - 01:03 PM

#1 janld   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 01-March 18

About binary

Posted 01 March 2018 - 12:49 PM

I need to get values (in number) from the same byte to store in different columns on my database. Exemple: From a byte like 101001 store in columns like byt1, byt2, then, search values by this columns using bitwise operator (select byt1 & 1 as foo, byt2 & 2 as bar).

Sorry my bad english and if I won't be clear!

Anyone can help me??

Thank!
Is This A Good Question/Topic? 0
  • +

Replies To: About binary

#2 modi123_1   User is online

  • Suitor #2
  • member icon



Reputation: 14092
  • View blog
  • Posts: 56,461
  • Joined: 12-June 08

Re: About binary

Posted 01 March 2018 - 12:52 PM

What have you tried, thought about, or considered?
Was This Post Helpful? 0
  • +
  • -

#3 janld   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 01-March 18

Re: About binary

Posted 01 March 2018 - 01:03 PM

The same byte is stored in different number values in columns byt1, byt2, byt3. I think the values are according the way that are retrieved, in this case using bitwise operator.. select byt1 & 1, byt2 & 2, byt3 & 4. Considering that the number on the right of the bitwise operator is the double of previous.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1