pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: T E Schmitz <mailreg@numerixtechnology.de>
To: pgsql-sql <pgsql-sql@postgresql.org>
Subject: CHECK col A not NULL if col B='x'
Date: Tue, 28 Sep 2004 15:02:02 +0100
Message-ID: <41596EDA.4030909@numerixtechnology.de> (raw)

Hello,

Is it possible to set up a table CHECK, which ensures that column A is 
NOT NULL if column B = 'x' ?

-- 


Regards/Gruß,

Tarlika Elisabeth Schmitz



view thread (6+ messages)  latest in thread

Message-ID: <41596EDA.4030909@numerixtechnology.de>
Permalink:  ../41596EDA.4030909@numerixtechnology.de/
Also on:    postgresql.org/message-id/41596EDA.4030909@numerixtechnology.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: mailreg@numerixtechnology.de
  Subject: Re: CHECK col A not NULL if col B='x'
  In-Reply-To: <41596EDA.4030909@numerixtechnology.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