Re: Executing dynamic queries (EXECUTE) - Mailing list pgsql-sql

From Carla Mello
Subject Re: Executing dynamic queries (EXECUTE)
Date
Msg-id 001501c3e978$7fbdd340$16011aac@widesoft.com.br
Whole thread Raw
In response to Executing dynamic queries (EXECUTE)  ("Carla Mello" <carla.mello@widesoft.com.br>)
List pgsql-sql
Hello Tomasz,

I´m going to study the FOR-IN-EXECUTE statement and to try again.

Thanks,
Carla Mello

----- Original Message -----
From: "Tomasz Myrta" <jasiek@klaster.net>
To: "Carla Mello" <carla.mello@widesoft.com.br>
Cc: "Lista dyskusyjna pgsql-sql" <pgsql-sql@postgresql.org>
Sent: Sunday, February 01, 2004 5:43 PM
Subject: Re: [SQL] Executing dynamic queries (EXECUTE)


> Dnia 2004-01-27 16:25, Użytkownik Carla Mello napisał:
> >
> >     Hello!
> >
> >     I need to execute a dynamic query and capture your result in a
> >     integer variable.
> >
> >     I´m using the statement "EXECUTE string", but I don´t obtain to
> >     capture the result of dynamic query.
> >           v_count:= EXECUTE v_query;
>
> Documentation:
> 19.5.4. Executing dynamic queries
>
> "The results from SELECT queries are discarded by EXECUTE, and SELECT
> INTO is not currently supported within EXECUTE. So, the only way to
> extract a result from a dynamically-created SELECT is to use the
> FOR-IN-EXECUTE form described later."
>
> Regards,
> Tomasz Myrta



pgsql-sql by date:

Previous
From: "Prashanthi Muthyala"
Date:
Subject:
Next
From: pawel@deso.pl (Paul Czubilinski)
Date:
Subject: SQL query