Using EXECUTE in plpgsql - Mailing list pgsql-novice

From Jonathon Batson
Subject Using EXECUTE in plpgsql
Date
Msg-id 3E80F788.8050408@octahedron.com.au
Whole thread Raw
List pgsql-novice
Hi
I have just experimenting with plpgsql and cannot find out how to return
a single field from a query
that I know will only every return one field.  I currently use the
example below:

    qrystr1 := ''SELECT count(*) from my_table";
    FOR next_table IN EXECUTE qrystr1 LOOP
        next_table_count := next_table.count;
    END LOOP;

which seems like a very inadequate way to retrieve one value....?

Tips are very much aprieciated, thanks
Jonathon


pgsql-novice by date:

Previous
From: Josh Berkus
Date:
Subject: Re: Getting data out of MS Access with only Linux?
Next
From: Frank Bax
Date:
Subject: Re: Getting data out of MS Access with only Linux?