Re: Check constraints do not seem to be working!!!

Поиск
Список
Период
Сортировка
От Jitendra Loyal
Тема Re: Check constraints do not seem to be working!!!
Дата
Msg-id CAGBkuscBAWhR6SuJqKWTKO1dhLetYuKrmK=ttN0KXDe-JugJpw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Check constraints do not seem to be working!!!  (Laurenz Albe <laurenz.albe@cybertec.at>)
Список pgsql-general
Thanks Laurenz

This is interesting...b is True

Thanks and regards,
Jitendra

On Wed 11 Nov, 2020, 22:52 Laurenz Albe, <laurenz.albe@cybertec.at> wrote:
On Wed, 2020-11-11 at 11:47 +0100, Tomas Vondra wrote:
> you may do this, for example:
>
>     (b it not null and b = true) and (c is not null)
>
> Or something like that.

My (equivalent) suggestion:

   b IS TRUE AND c IS NOT NULL

Yours,
Laurenz Albe
--
Cybertec | https://www.cybertec-postgresql.com

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

Предыдущее
От: Laurenz Albe
Дата:
Сообщение: Re: Check constraints do not seem to be working!!!
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: New "function tables" in V13 documentation