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

From: "Jean-Yves F(dot) Barbier" <12ukwn(at)gmail(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: how to extract and use a string like a constraint?
Date: 2010-07-07 20:45:17
Message-ID: 20100707224517.26863605@anubis.defcon1
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Le Wed, 07 Jul 2010 20:31:50 +0000,
Tim Landscheidt <tim(at)tim-landscheidt(dot)de> a écrit :

> "Jean-Yves F. Barbier" <12ukwn(at)gmail(dot)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));

Thanks Tim (I tested many signs but this one)

--
semper en excretus

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Thom Brown 2010-07-07 21:16:09 Re: how to extract and use a string like a constraint?
Previous Message Thom Brown 2010-07-07 20:34:38 Re: how to extract and use a string like a constraint?