From: Holger Mitterwald <mittehlg@coi.de>
To: k_ogorman@kompass.ie
Cc: pgsql-sql@postgreSQL.org
Subject: Re: [SQL] CHECK and IN (Sets in general) - What's the story?
Date: Fri, 21 Aug 1998 09:30:07 +0200 (MET DST)
Message-ID: <Pine.GSO.4.02.9808210916380.7604-100000@su00574> (raw)
In-Reply-To: <009CAFD5.71417C54.5@kompass.ie>
On Thu, 20 Aug 1998 k_ogorman@kompass.ie wrote:
> Is there a known reason why the following definition fails
> the parser at the IN keyword?:
>
> create table kev_test ( my_tag char check (my_tag in ('A', 'B', 'C')));
It isn't this worse at all :-)
First, your syntax is not correct.
Second, you can change the 'IN' Clause with several 'OR' clauses.
The result would look like this:
create table kev_test ( my_tag char) constraint tester check (my_tag =
'A' OR my_tag='B' OR my_tag = 'C');
If somebody has a solution for the 'IN' construction.... mail it!
So long,
Holger
--------------------------------------------------------------------------------
Holger Mitterwald COI-D #### ##### ### CONSULTING FUER OFFICE
COI GmbH Herzogenaurach # # # # UND INFORMATION
Industriestrasse 1 - 3 # # # # MANAGEMENT GmbH
D-91074 Herzogenaurach #### ##### ### Tel.: 09132/82-3811
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-sql@postgresql.org
Cc: mittehlg@coi.de, k_ogorman@kompass.ie
Subject: Re: [SQL] CHECK and IN (Sets in general) - What's the story?
In-Reply-To: <Pine.GSO.4.02.9808210916380.7604-100000@su00574>
References: <009CAFD5.71417C54.5@kompass.ie> <Pine.GSO.4.02.9808210916380.7604-100000@su00574>
* 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