Re: translating this SQL query from a different dialect - Mailing list pgsql-novice

From Jaime Casanova
Subject Re: translating this SQL query from a different dialect
Date
Msg-id c2d9e70e0601101204n76415c01of4b49587aefcf4e8@mail.gmail.com
Whole thread Raw
In response to Re: translating this SQL query from a different dialect  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
Responses Re: translating this SQL query from a different dialect  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
List pgsql-novice
On 1/10/06, A. Kretschmer <andreas.kretschmer@schollglas.com> wrote:
> am  10.01.2006, um 10:38:59 -0700 mailte Michael Fuhr folgendes:
> > Beware that as written this doesn't handle concurrency.  For example:
>
> Please, can you expand this example that it works with concurrency?
>
> This is a new field for me...
>

and what's the problem with something like

create table foo (
     fld1   int4   not null unique
          constraint eight_rows_limit check (fld1 >= 0 and fld1 <= 8)
);

--
regards,
Jaime Casanova
(DBA: DataBase Aniquilator ;)

pgsql-novice by date:

Previous
From: "A. Kretschmer"
Date:
Subject: Re: translating this SQL query from a different dialect
Next
From: "A. Kretschmer"
Date:
Subject: Re: translating this SQL query from a different dialect