From: Richard Huxton <dev@archonet.com>
To: Ivan Sergio Borgonovo <mail@webthatworks.it>
To: pgsql-sql@postgresql.org
Subject: Re: plpgsql vs. SQL in stored procedures
Date: Wed, 31 Mar 2004 13:06:04 +0100
Message-ID: <200403311306.04634.dev@archonet.com> (raw)
In-Reply-To: <20040331130756.2cc03a1e@stige.webthatworks.it>
References: <20040331000808.7aaedc33@stige.webthatworks.it>
<m3r7v9zad6.fsf@wolfe.cbbrowne.com>
<20040331130756.2cc03a1e@stige.webthatworks.it>
On Wednesday 31 March 2004 12:07, Ivan Sergio Borgonovo wrote:
>
> I was used to do stuff like this with MS SQL
>
> create proc sp_getuid @uid uniqueidentifier
[snip]
> Does it mean that to have variables in SP I'll have to use plpgsql
> in spite of plain SQL?
Yep - just like there you were using transact-sql (if I remember its name
correctly) rather than sql.
The syntax is different (plpgsql bares a startling resemblance to the Oracle
approach), the purpose of each is the same.
--
Richard Huxton
Archonet Ltd
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: dev@archonet.com, mail@webthatworks.it
Subject: Re: plpgsql vs. SQL in stored procedures
In-Reply-To: <200403311306.04634.dev@archonet.com>
* 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