Re: a query with = ALL

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Jaime Casanova" <el_vigia_ec(at)hotmail(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: a query with = ALL
Date: 2004-06-14 18:51:49
Message-ID: 5259.1087239109@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

"Jaime Casanova" <el_vigia_ec(at)hotmail(dot)com> writes:
> brings 'A ', 'B ', 'C ' well when i cHange the real query

Given that you spelled it like that, I wonder whether you aren't
confused about the behavior of cross-data-type comparisons. If
one column is char(n) and the other is text or varchar(n) then you
may get results you didn't expect. These types have different ideas
about whether trailing blanks are significant or not.

regards, tom lane

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2004-06-14 19:02:03 Re: RES: Datetime problem
Previous Message Tom Lane 2004-06-14 18:47:15 Re: RES: Datetime problem