pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff MacDonald <jeff@pgsql.com>
To: Indraneel Majumdar <indraneel@www.cdfd.org.in>
Cc: Jeff MacDonald <jeff@pgsql.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: select
Date: Sat, 23 Sep 2000 14:49:32 -0300 (ADT)
Message-ID: <Pine.BSF.4.21.0009231448280.53901-100000@rage.hub.org> (raw)
In-Reply-To: <Pine.SGI.3.96.1000923232021.71353B-100000@www.cdfd.org.in>

bignose=# create table test (
bignose(#         val1    int4,
bignose(#         val2    boolean);
CREATE
bignose=# 
bignose=# insert into test (val1) values (56);
INSERT 322762 1
bignose=# 
bignose=# select * from test;
 val1 | val2 
------+------
   56 | 
(1 row)

ta da :)


On Sat, 23 Sep 2000, Indraneel Majumdar wrote:

> Hi,
> 
> AFAIK, you can't enter a null  value in a bool field, it has to be 1 or 0.
> 
> \Indraneel
> 
> On Sat, 23 Sep 2000, Jeff MacDonald wrote:
> 
> > how would i select all rows where a boolean value is neither
> > t nor f.. ?
> > 
> > ie if someone inserted without setting the boolean tag.
> > 
> > Jeff MacDonald,
> > 
> 
> /************************************************************************.
> # Indraneel Majumdar                  ¡  E-mail: indraneel@123india.com  #
> # Bioinformatics Unit (EMBNET node),  ¡  URL: http://scorpius.iwarp.com  #
> # Centre for DNA Fingerprinting and Diagnostics,                         #
> # Hyderabad, India - 500076                                              #
> `************************************************************************/
> 

Jeff MacDonald,

-----------------------------------------------------
PostgreSQL Inc		| Hub.Org Networking Services
jeff@pgsql.com		| jeff@hub.org
www.pgsql.com		| www.hub.org
1-902-542-0713		| 1-902-542-3657
-----------------------------------------------------
Fascimile : 1 902 542 5386
IRC Nick  : bignose




view thread (10+ messages)  latest in thread

Message-ID: <Pine.BSF.4.21.0009231448280.53901-100000@rage.hub.org>
Permalink:  ../Pine.BSF.4.21.0009231448280.53901-100000@rage.hub.org/
Also on:    postgresql.org/message-id/Pine.BSF.4.21.0009231448280.53901-100000@rage.hub.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: jeff@pgsql.com, indraneel@www.cdfd.org.in
  Subject: Re: select
  In-Reply-To: <Pine.BSF.4.21.0009231448280.53901-100000@rage.hub.org>
  References: <Pine.SGI.3.96.1000923232021.71353B-100000@www.cdfd.org.in> <Pine.BSF.4.21.0009231448280.53901-100000@rage.hub.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox