Skip site navigation (1) Skip section navigation (2)

how to store a query, that results in a table

From: root <nbrito(at)cmet(dot)net>
To: pgsql-novice(at)postgresql(dot)org
Subject: how to store a query, that results in a table
Date: 2000-09-22 14:54:01
Message-ID: 39CB7289.EFF35E68@cmet.net (view raw or flat)
Thread:
Lists: pgsql-novice

> hi.
> I have a problem.
> I require to store a query sql in postgresql-7.0 like:
> example.
> select * from table1 where row1(table1)=parameter1
> If i execute this query directly, I don't have problem.
> I want to store this query in order to execute from a client program
> (visual basic 6.0), but i don't know how to?
> I tried to store the query like a function (create function ...), but it
> was impossible to find a way in order to obtain a table like result.
> Only we could obtain a single row by using the rtype " returns setof
> varchar".
> I hope a soon answer.
> Thank you.
>  Nelson B.

Attachment: nbrito.vcf
Description: text/x-vcard (150 bytes)

pgsql-novice by date

Next:From: Jie LiangDate: 2000-09-22 21:41:25
Subject: Re: how to store a query, that results in a table
Previous:From: rootDate: 2000-09-22 13:58:56
Subject: how to store a query, that results in a table

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group