pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Hammond <andrew.george.hammond@gmail.com>
To: pgsql-sql@postgresql.org
Subject: Re: SELECT all fields except two
Date: 3 Aug 2006 09:16:29 -0700
Message-ID: <1154621789.772786.212160@75g2000cwc.googlegroups.com> (raw)
In-Reply-To: <easonh$2d8q$1@news.hub.org>
References: <easonh$2d8q$1@news.hub.org>

This does not exist in SQL. However you could achieve similar
functionality by doing a suitable query against the system info tables
to find out what columns are available and then building your query
appropriately.

For an example, try
psql -E -c '\d mytable'

Drew


Pit M. wrote:
> select *,!Blob1,!Blob2 from MyTable
>
> Perhaps this is a construction that doesn't exist in the current SQL
> standard at the moment.
> Does anybody know the solution for that problem without explicitly
> specifying the whole field list like:
> 
> select Field1,Field2,...Field100 from MyTable
> 
> 
> HP




Message-ID: <1154621789.772786.212160@75g2000cwc.googlegroups.com>
Permalink:  ../1154621789.772786.212160@75g2000cwc.googlegroups.com/
Also on:    postgresql.org/message-id/1154621789.772786.212160@75g2000cwc.googlegroups.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: andrew.george.hammond@gmail.com
  Subject: Re: SELECT all fields except two
  In-Reply-To: <1154621789.772786.212160@75g2000cwc.googlegroups.com>

* 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