Re: Are globally defined constants possible at all ?

Поиск
Список
Период
Сортировка
От Andrew Sullivan
Тема Re: Are globally defined constants possible at all ?
Дата
Msg-id 20020607180447.B30966@mail.libertyrms.com
обсуждение исходный текст
Ответ на Re: Are globally defined constants possible at all ?  (Gregory Seidman <gss+pg@cs.brown.edu>)
Ответы Re: Are globally defined constants possible at all ?
Список pgsql-general
On Fri, Jun 07, 2002 at 05:29:27PM -0400, Gregory Seidman wrote:
>
> Er, could you expand on that? Are you suggesting something like this:
>
> CREATE TABLE Foo (
>     KindID int,
>     ...
>     CONSTRAINT fooenum
>     CHECK KindID IN ('SOFTWARE', 'HARDWARE')
> );

Yes.  Except I think you need another set of parentheses

    check("KindID" IN ('SOFTWARE','HARDWARE'))

A

--
----
Andrew Sullivan                               87 Mowat Avenue
Liberty RMS                           Toronto, Ontario Canada
<andrew@libertyrms.info>                              M6K 3E3
                                         +1 416 646 3304 x110


В списке pgsql-general по дате отправления:

Предыдущее
От: Darren Ferguson
Дата:
Сообщение: Re: Are globally defined constants possible at all ?
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Non-linear Performance