Re: SELECT all fields except two

From: "Andrew Hammond" <andrew(dot)george(dot)hammond(at)gmail(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: SELECT all fields except two
Date: 2006-08-03 16:16:29
Message-ID: 1154621789.772786.212160@75g2000cwc.googlegroups.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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

Browse pgsql-sql by date

  From Date Subject
Next Message Sylvain Racine 2006-08-03 16:58:48 Function not return zero record
Previous Message Aaron Bono 2006-08-03 04:05:07 Re: Problem while using lo_import and lo_export