agora inbox for pgsql-sql@postgresql.org  
help / color / mirror / Atom feed
From: reinoud@xs4all.nl
To: pgsql-sql@postgresql.org
Subject: Re: Stored Procedures?
Date: Thu, 24 May 2001 22:54:05 GMT
Message-ID: <3b0e9078.3305704640@news.xs4all.nl> (raw)
References: <Pine.GSO.4.33.0105240831060.4117-100000@sysadmin>

On Thu, 24 May 2001 13:45:46 +0000 (UTC), devin@spamcop.net (Tod
McQuillin) wrote:

>Postgres doesn't have stored procedures in the same way that other
>databases like oracle and sybase do.  But it does have stored functions,
>and they can be used in almost exactly the same way.

In Sybase I am used to the fact that stored procedures can return a
result set to the client. Something like;

create procedure sp_example (@param int) as
begin
  select bla 
  from tablename 
  where somecolumn = @param
end

(of course in pratice stored procedures get a lot more complex than
this :-)

Is something like this posstible in PostgreSQL?

-- 
__________________________________________________
"Nothing is as subjective as reality"
Reinoud van Leeuwen       reinoud@xs4all.nl
http://www.xs4all.nl/~reinoud
__________________________________________________



view thread (23+ messages)  latest in thread

Message-ID: <3b0e9078.3305704640@news.xs4all.nl>
Permalink:  ../3b0e9078.3305704640@news.xs4all.nl/
Also on:    postgresql.org/message-id/3b0e9078.3305704640@news.xs4all.nl

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: reinoud@xs4all.nl
  Subject: Re: Stored Procedures?
  In-Reply-To: <3b0e9078.3305704640@news.xs4all.nl>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox