Re: Where clause...

From: "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: Where clause...
Date: 2008-02-03 08:41:14
Message-ID: 20080203084113.GA13226@a-kretschmer.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

am Sun, dem 03.02.2008, um 9:26:34 +0100 mailte Didier Gasser-Morlay folgendes:
> Hello,
>
> I have a table which a column "fee_type " declared as char(1)
>
> The column can contain 'I' (uppercase i), 'C' or 'R'
>
> When querying with Select * from <table> where fee_type in ('I', 'C')
>
> the query returns nothing.

Works for me:

test=*# select * from fee;
id | fee_type
----+----------
1 | C
2 | I
3 | c
4 | i
5 | a
(5 rows)

test=*# select * from fee where fee_type in ('C','I');
id | fee_type
----+----------
1 | C
2 | I
(2 rows)

Please show us your table description (\d table like
test=*# \d fee
Table "public.fee"
Column | Type | Modifiers
----------+--------------+-----------
id | integer |
fee_type | character(1) |

and tell us your PG-Version.

Andreas
--
Andreas Kretschmer
Kontakt: Heynitz: 035242/47150, D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID: 0x3FFF606C, privat 0x7F4584DA http://wwwkeys.de.pgp.net

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Alex du Plessis 2008-02-03 10:53:35 Trouble with libpq.dll
Previous Message Didier Gasser-Morlay 2008-02-03 08:26:34 Where clause...