pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rajesh Kumar Mallah <mallah@trade-india.com>
To: kumar <sgnerd@yahoo.com.sg>
Cc: pgsql <pgsql-sql@postgresql.org>
Subject: Re: Logical comparison on Strings
Date: Tue, 27 Apr 2004 15:46:02 +0530
Message-ID: <408E32E2.1030709@trade-india.com> (raw)
In-Reply-To: <008801c42c1e$b70efbb0$7502a8c0@hdsc.com>
References: <008801c42c1e$b70efbb0$7502a8c0@hdsc.com>

kumar wrote:

> Dear Friends,
>  
> Postgres 7.3.2 on Linux 7.
>  
> I want to compare to columns and get the logical result as follows.
>  
> C1 is 'YNYNY' . C2 is 'NNYYY'.
>  
> I want to compare like AND and OR operators.
>  
> C1 AND C2 should give result like NNYNY.
> C1 OR C2 should give result like YNYYY.



Bit String Types in PostgreSQL may be what you are
looking for.

btw: what is linux 7?



>  
> Please shed some light.
>  
> Thanks
> Kumar





view thread (2+ messages)

Message-ID: <408E32E2.1030709@trade-india.com>
Permalink:  ../408E32E2.1030709@trade-india.com/
Also on:    postgresql.org/message-id/408E32E2.1030709@trade-india.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: mallah@trade-india.com, sgnerd@yahoo.com.sg
  Subject: Re: Logical comparison on Strings
  In-Reply-To: <408E32E2.1030709@trade-india.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox