pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Herouth Maoz <herouth@oumail.openu.ac.il>
To: Cary B. O'Brien <cobrien@access.digex.net>
To: ken@ori-ind.com
Cc: pgsql-interfaces@postgresql.org
Subject: Re: [INTERFACES] how to obtain column info
Date: Wed, 11 Nov 1998 13:44:22 +0200
Message-ID: <l03110702b26f28d65c54@[147.233.159.109]> (raw)
In-Reply-To: <199811110134.UAA07958@access1.digex.net>
References: <3.0.1.32.19981110163802.007b72f0@ori-ind.com>

At 3:34 +0200 on 11/11/98, Cary B. O'Brien wrote:


> I usually do a 'select * from table_x where oid < 0' or something like
> that to get an empty result set.

I always maintain that it's more elegant to write

SELECT *
FROM table_x
WHERE 'false'::bool;

Herouth

--
Herouth Maoz, Internet developer.
Open University of Israel - Telem project
http://telem.openu.ac.il/~herutma





view thread (5+ messages)

Message-ID: <l03110702b26f28d65c54@[147.233.159.109]>
Permalink:  ../l03110702b26f28d65c54@%5B147.233.159.109%5D/
Also on:    postgresql.org/message-id/l03110702b26f28d65c54@[147.233.159.109]

 · 

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-interfaces@postgresql.org
  Cc: herouth@oumail.openu.ac.il, cobrien@access.digex.net, ken@ori-ind.com
  Subject: Re: [INTERFACES] how to obtain column info
  In-Reply-To: <l03110702b26f28d65c54@[147.233.159.109]>
  References: <3.0.1.32.19981110163802.007b72f0@ori-ind.com> <l03110702b26f28d65c54@[147.233.159.109]>

* 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