| From: | reinoud(at)xs4all(dot)nl (Reinoud van Leeuwen) |
|---|---|
| To: | pgsql-sql(at)postgresql(dot)org |
| Subject: | Re: Stored Procedures? |
| Date: | 2001-05-24 22:54:05 |
| Message-ID: | 3b0e9078.3305704640@news.xs4all.nl |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-sql |
On Thu, 24 May 2001 13:45:46 +0000 (UTC), devin(at)spamcop(dot)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(at)xs4all(dot)nl
http://www.xs4all.nl/~reinoud
__________________________________________________
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Richard Huxton | 2001-05-24 23:28:39 | Re: photos and OID's |
| Previous Message | Kate Collins | 2001-05-24 21:30:56 | Re: ports in use question |