Re: select

From: Jeff MacDonald <jeff(at)pgsql(dot)com>
To: Indraneel Majumdar <indraneel(at)www(dot)cdfd(dot)org(dot)in>
Cc: Jeff MacDonald <jeff(at)pgsql(dot)com>, pgsql-sql(at)postgresql(dot)org
Subject: Re: select
Date: 2000-09-23 17:49:32
Message-ID: Pine.BSF.4.21.0009231448280.53901-100000@rage.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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(at)123india(dot)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(at)pgsql(dot)com | jeff(at)hub(dot)org
www.pgsql.com | www.hub.org
1-902-542-0713 | 1-902-542-3657
-----------------------------------------------------
Fascimile : 1 902 542 5386
IRC Nick : bignose

In response to

  • Re: select at 2000-09-24 06:21:32 from Indraneel Majumdar

Browse pgsql-sql by date

  From Date Subject
Next Message Stephan Szabo 2000-09-23 18:49:59 Re: select
Previous Message Jeff MacDonald 2000-09-23 17:37:29 select