Re: select distinct error ?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Mario Weilguni" <mweilguni(at)sime(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: select distinct error ?
Date: 2002-07-25 15:22:53
Message-ID: 18657.1027610573@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Mario Weilguni" <mweilguni(at)sime(dot)com> writes:
> try:
> SELECT distinct foo, length(foo) from bar where foobar like 'foobar%';
> maybe one has a blank attached?

He said the column was char(6), so they should all be padded to length
6. I was wondering about nonprinting characters (carriage returns etc)
in the data, myself.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2002-07-25 15:25:21 Re: Auto DROP SEQUENCE?
Previous Message Stephan Szabo 2002-07-25 15:18:19 Re: regression test