Re: how to extract and use a string like a constraint?

Поиск
Список
Период
Сортировка
От Tim Landscheidt
Тема Re: how to extract and use a string like a constraint?
Дата
Msg-id m3wrt7ghjd.fsf@passepartout.tim-landscheidt.de
обсуждение исходный текст
Ответ на how to extract and use a string like a constraint?  ("Jean-Yves F. Barbier" <12ukwn@gmail.com>)
Ответы Re: how to extract and use a string like a constraint?  ("Jean-Yves F. Barbier" <12ukwn@gmail.com>)
Список pgsql-novice
"Jean-Yves F. Barbier" <12ukwn@gmail.com> wrote:

> [...]
> and I also don't understand why this don't work:
> SELECT char_length(SELECT chk FROM tstchk WHERE id=1);
> Can it only be use with a temp var into a proc?

You have to use parentheses around the "SELECT" query,
i. e.:

| SELECT char_length((SELECT chk FROM tstchk WHERE id=1));

Tim

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

Предыдущее
От: "Jean-Yves F. Barbier"
Дата:
Сообщение: how to extract and use a string like a constraint?
Следующее
От: Thom Brown
Дата:
Сообщение: Re: how to extract and use a string like a constraint?