Re: [GENERAL] Logic AND between some strings

2011-03-07 Thread Bill Thoen
Just to make sure, you're asking for the logical AND, not the bitwise AND? In other words you're not talking about getting into bit shifting with << and >> and masking with &? For the logical AND, you need to use expressions that evaluate to TRUE or FALSE, and follow the rules in this "truth t

Re: [GENERAL] Logic AND between some strings

2011-03-07 Thread Vick Khera
On Mon, Mar 7, 2011 at 10:14 AM, yagru_alvarez wrote: > I wanto to make a LOGIC AND between 01100010 and 1100. > > I' m working with C++, I need some code to have an idea about how I > can perform that. > You want to do this in C++ or in SQL? In SQL it looks like this: select b'01100010' &

[GENERAL] Logic AND between some strings

2011-03-07 Thread yagru_alvarez
I want to make a Logic AND between some STRINGS of 0s and 1s .. Here you have an example: 1-> 01100010 2-> 1100 I want to make a LOGIC AND between 01100010 and 1100. I' m working with C++, I need some code to have an idea about how I can perform that. -- Sent via pgsql-general mailing

[GENERAL] Logic AND between some strings

2011-03-07 Thread yagru_alvarez
I want to make a Logic AND between some strings of 0s and 1s .. Here you have an example: 1-> 01100010 2-> 1100 I wanto to make a LOGIC AND between 01100010 and 1100. I' m working with C++, I need some code to have an idea about how I can perform that. -- Sent via pgsql-general mailing

[GENERAL] Logic AND between some strings

2011-03-07 Thread yagru_alvarez
I want to make a Logic AND between some strings of 0s and 1s .. Here you have an example: 1-> 01100010 2-> 1100 I wanto to make a LOGIC AND between 01100010 and 1100. I' m working with C++, I need some code to have an idea about how I can perform that. -- Sent via pgsql-general mailing