pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stanislav Motyčka <stanislav.motycka@gmail.com>
To: pgsql-general@postgresql.org
Subject: a proposal for a new functionality: "SELECT * [EXCEPT col1 [,col2]]
Date: Tue, 25 Feb 2020 11:17:47 +0100
Message-ID: <d51371a2-f221-1cf3-4a7d-b2242d4dafdb@gmail.com> (raw)

Hello,

Sometimes (for tables with many columns) it would be better and easier
to write "SELECT" statement with clause "EXCEPT":
"SELECT * [EXCEPT col1 [,col2]] FROM ..."

It's easier to write "except" one or two columns from all (*) as to
write names of all columns besides one or two.
What do you thin about it?

Best regards
Stano Motycka

view thread (14+ messages)  latest in thread

Message-ID: <d51371a2-f221-1cf3-4a7d-b2242d4dafdb@gmail.com>
Permalink:  ../d51371a2-f221-1cf3-4a7d-b2242d4dafdb@gmail.com/
Also on:    postgresql.org/message-id/d51371a2-f221-1cf3-4a7d-b2242d4dafdb@gmail.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 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-general@postgresql.org
  Cc: stanislav.motycka@gmail.com
  Subject: Re: a proposal for a new functionality: "SELECT * [EXCEPT col1 [,col2]]
  In-Reply-To: <d51371a2-f221-1cf3-4a7d-b2242d4dafdb@gmail.com>
  References: <d51371a2-f221-1cf3-4a7d-b2242d4dafdb@gmail.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