From: Kim Markle <KMarkle@IMNET.com>
To: 'pgsql-sql@postgresql.org' <pgsql-sql@postgresql.org>
Subject: Postgres functions and Stored Procedures?
Date: Thu, 7 Jan 1999 12:44:45 -0500
Message-ID: <549B01194628D11184EF00805FA6DCBAF3C14A@CORP2> (raw)
I am new to Postgres and have researched the mail archives but I have
not found the answer for this (only questions). I am very familiar with
using MS SQL 6.5 and have written tons of SP's. The example below is
how one could write a SP for MS SQL which returns a record set. My
question is how do I do this with Postgres functions?
create procedure ListAIS
as
select aisname as "AIS Name", aisdescription as "Description",
username as "User Name", password as "Password" from ais_list
GO
GRANT EXECUTE ON dbo.EPRS_ListAIS TO USER
GO
Thanks,
Kim Markle
Tivoli Kennels
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: KMarkle@IMNET.com
Subject: Re: Postgres functions and Stored Procedures?
In-Reply-To: <549B01194628D11184EF00805FA6DCBAF3C14A@CORP2>
References: <549B01194628D11184EF00805FA6DCBAF3C14A@CORP2>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox