Re: PL/pgSQL doesn't support variables in queries? - Mailing list pgsql-general

From Adrian Klaver
Subject Re: PL/pgSQL doesn't support variables in queries?
Date
Msg-id b92038e6-87b4-eaa5-9975-2177cd93e505@aklaver.com
Whole thread Raw
In response to Re: PL/pgSQL doesn't support variables in queries?  ("J.A." <postgresql@world-domination.com.au>)
List pgsql-general
On 5/3/23 07:34, J.A. wrote:
> Ah - I think I'm starting to follow.
> 
> what i was _trying_ to do is this
> 
> get value from a column and stick it into a variable.
> 
> now select * from a _number_ of tables and return a -multi recordsets- 
> from this single query. I'm not sure if that is the same terminology, in 
> pgsql?
> 
> So is this possible?

Many things are possible and they are covered in the documentation:

https://www.postgresql.org/docs/current/plpgsql.html

Read through that and you will find your questions answered.

> 
> -JA-
> 

> 

-- 
Adrian Klaver
adrian.klaver@aklaver.com




pgsql-general by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: PL/pgSQL doesn't support variables in queries?
Next
From: "Michael J. Baars"
Date:
Subject: Re: libpq and multi-threading