boolean

From: "Henrik Steffen" <steffen(at)city-map(dot)de>
To: "pg" <pgsql-general(at)postgresql(dot)org>
Subject: boolean
Date: 2002-09-20 12:49:25
Message-ID: 010f01c260a4$270d95e0$7100a8c0@topconcepts.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


hello list,

if i have a table foo with a column called bar of type boolean
and if i insert into foo (foobar) values('bar') without
explicitly inserting a value for bar, the bar column of this
particular row will be empty. it's neither 't' nor 'f'.

i can select all rows where bar eqals to 't' and all
rows where bar equals to 'f'.

But I want to know, how I can select all rows which neither
match 't' nor 'f' ? To perform an update like

UPDATE foo SET bar='t' WHERE bar=null;

or anything similar. What syntax can I use?

thanks for your help

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
--------------------------------------------------------

Responses

  • Re: boolean at 2002-09-20 13:14:36 from Stephane Bortzmeyer
  • Re: boolean at 2002-09-20 13:21:15 from Holger Klawitter

Browse pgsql-general by date

  From Date Subject
Next Message Stephane Bortzmeyer 2002-09-20 13:14:36 Re: boolean
Previous Message Tomas Lehuta 2002-09-20 12:30:08 timestamp parse error