Re: Substitute a variable in PL/PGSQL. - Mailing list pgsql-general

From Steve Martin
Subject Re: Substitute a variable in PL/PGSQL.
Date
Msg-id 488D0249.8030308@nec.co.nz
Whole thread Raw
In response to Re: Substitute a variable in PL/PGSQL.  (artacus@comcast.net)
List pgsql-general
artacus@comcast.net wrote:

>You can do it in straight sql like so.
>
>SELECT (array[col1, col2, col3, col4, col5, col6, col7, col8, col9, col10])[i]
>FROM test t, generate_series(1,10) i
>
>Art
>
>
>
Hi Art,
Thanks for the advice, in my case using arrays was not a option as the
data could be null.
Steve M.


pgsql-general by date:

Previous
From: Steve Martin
Date:
Subject: Re: Substitute a variable in PL/PGSQL.
Next
From: Sushant Sinha
Date:
Subject: Re: Profiling postgres