pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Markus Bertheau ☭ <twanger@bluetwanger.de>
To: PostgreSQL <pgsql-sql@postgresql.org>
Subject: CASE WHEN foo IS NULL THEN DEFAULT ELSE foo END
Date: Fri, 03 Jun 2005 15:17:26 +0200
Message-ID: <1117804646.9816.37.camel@dicaprio.akademie1.de> (raw)

Hi,

is it planned to support the following insert syntax?

INSERT INTO table VALUES (CASE WHEN arg_whatever IS NULL THEN DEFAULT
ELSE arg_whatever END);

I have the DEFAULT inside the CASE expression in mind.

Markus
-- 
Markus Bertheau ☭ <twanger@bluetwanger.de>




view thread (2+ messages)  latest in thread

Message-ID: <1117804646.9816.37.camel@dicaprio.akademie1.de>
Permalink:  ../1117804646.9816.37.camel@dicaprio.akademie1.de/
Also on:    postgresql.org/message-id/1117804646.9816.37.camel@dicaprio.akademie1.de

 · 

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: twanger@bluetwanger.de
  Subject: Re: CASE WHEN foo IS NULL THEN DEFAULT ELSE foo END
  In-Reply-To: <1117804646.9816.37.camel@dicaprio.akademie1.de>

* 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