Received: from postgresql.org.org (webmail.postgresql.org [216.126.85.28]) by postgresql.org (8.11.3/8.11.1) with SMTP id f4SCjHA00171 for ; Mon, 28 May 2001 08:45:17 -0400 (EDT) (envelope-from pgsql-sql-owner@postgresql.org) Received: from news.tht.net (news.hub.org [216.126.91.242]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f4OMvpA69354 for ; Thu, 24 May 2001 18:57:51 -0400 (EDT) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.1/8.11.1) id f4OMs7043283 for pgsql-sql@postgresql.org; Thu, 24 May 2001 18:54:07 -0400 (EDT) (envelope-from news) From: reinoud@xs4all.nl (Reinoud van Leeuwen) X-Newsgroups: comp.databases.postgresql.sql Subject: Re: Stored Procedures? Date: Thu, 24 May 2001 22:54:05 GMT Organization: Not organized in any way Lines: 28 Message-ID: <3b0e9078.3305704640@news.xs4all.nl> References: Reply-To: reinoud@xs4all.nl Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@xs4all.nl X-Newsreader: Forte Agent 1.5/32.451 To: pgsql-sql@postgresql.org X-Archive-Number: 200105/290 X-Sequence-Number: 3118 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 __________________________________________________