Re: sub-select

From: "Henrik Steffen" <steffen(at)city-map(dot)de>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "pgsql" <pgsql-general(at)postgresql(dot)org>
Subject: Re: sub-select
Date: 2003-05-15 13:14:59
Message-ID: 035301c31ae3$fd0caab0$9800a8c0@henrik
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

thanks tom

stupid me,

--

Mit freundlichem Gruß

Henrik Steffen
Geschäftsführer

top concepts Internetmarketing GmbH
Am Steinkamp 7 - D-21684 Stade - Germany
--------------------------------------------------------
http://www.topconcepts.com Tel. +49 4141 991230
mail: steffen(at)topconcepts(dot)com Fax. +49 4141 991233
--------------------------------------------------------
24h-Support Hotline: +49 1908 34697 (EUR 1.86/Min,topc)
--------------------------------------------------------
Ihr SMS-Gateway: JETZT NEU unter: http://sms.city-map.de
System-Partner gesucht: http://www.franchise.city-map.de
--------------------------------------------------------
Handelsregister: AG Stade HRB 5811 - UstId: DE 213645563
--------------------------------------------------------

----- Original Message -----
From: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Henrik Steffen" <steffen(at)city-map(dot)de>
Cc: "pgsql" <pgsql-general(at)postgresql(dot)org>
Sent: Thursday, May 15, 2003 3:03 PM
Subject: Re: [GENERAL] sub-select

> "Henrik Steffen" <steffen(at)city-map(dot)de> writes:
> > select * from foo where bar like '0101%' and foobar='03997';
> > works fine (1 result). HOWEVER:
>
> > select * from foo where bar like '0101%' and foobar=ANY(SELECT
> > '03997'::TEXT);
> > does not work at all (no result)...
>
> What's the datatype of foobar? I'm betting it's char(n), and
> you're losing in the second case because of (lack of) trailing
> spaces.
>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org

In response to

Browse pgsql-general by date

  From Date Subject
Next Message scott.marlowe 2003-05-15 14:45:16 Re: TESTING the DATABASE
Previous Message Tom Lane 2003-05-15 13:03:22 Re: sub-select