Re: Logic AND between some strings

From: Vick Khera <vivek(at)khera(dot)org>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Logic AND between some strings
Date: 2011-03-07 17:01:57
Message-ID: AANLkTikYvxg48DBe3E6uPHSNL154-r3WhR49=Sq7rKvH@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Mar 7, 2011 at 10:14 AM, yagru_alvarez
<jmalvarez(at)estudiantes(dot)uci(dot)cu> wrote:
> I wanto to make a LOGIC AND between 01100010 and 00001100.
>
> 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' & b'00001100';

If you want to do this in C++, ask your teacher for help with your homework.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message runner 2011-03-07 17:34:19 First production install - general advice
Previous Message Merlin Moncure 2011-03-07 15:52:59 Re: pg_dump slow with bytea data