Received: from ns.krot.org (ns.krot.org [193.212.103.165]) by postgresql.org (8.11.3/8.11.4) with SMTP id fAJDqHm64081 for ; Mon, 19 Nov 2001 08:52:17 -0500 (EST) (envelope-from postgresql@envisity.com) Received: (qmail 24856 invoked by uid 67); 19 Nov 2001 13:51:18 -0000 Message-ID: <20011119135117.16760.qmail@ns.krot.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline MIME-Version: 1.0 From: "Aasmund Midttun Godal" To: roland@astrofoto.org Cc: pgsql-docs@postgresql.org, pgsql-sql@postgresql.org Subject: Re: [SQL] PL/pgSQL examples NOT involving functions Date: Mon, 19 Nov 2001 13:51:17 GMT X-Mailer: Googley-Moogley In-Reply-To: from Roland Roberts on 18 Nov 2001 22:57:05 -0500 References: <20011115215049.14167.qmail@ns.krot.org> Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by postgresql.org id fAJE0a565651 X-Archive-Number: 200111/55 X-Sequence-Number: 1128 On 18 Nov 2001 22:57:05 -0500, Roland Roberts wrote: > > Aasmund> Well, to the best of my knowledge your question is a > Aasmund> contradiction in terms: plpgsql is a procedural language > Aasmund> to use it you must create a stored procedure or > Aasmund> function... > > Coming from an Oracle background, perhaps I don't see it the same > way. To merely *call* a PL/SQL procedure, I have to do something like > > BEGIN > MYPROC (a, b, c) > END; > > So I *could* create a pl/pgsql function and call it like that, but > since pl/pgsql procedures aren't compiled I wondered if I could do it > inline. I do believe they are compiled. > > Aasmund> However you are probably able to do many of the things > Aasmund> you may want with plain old SQL look it up in the docs > Aasmund> especially the case structure. > > Thanks for this suggestion; I'll have a look at the case structure.... > > roland > -- > PGP Key ID: 66 BC 3B CD > Roland B. Roberts, PhD RL Enterprises > roland@rlenter.com 76-15 113th Street, Apt 3B > roland@astrofoto.org Forest Hills, NY 11375 > > ---------------------------(end of broadcast)--------------------------- > TIP 2: you can get off all lists at once with the unregister command > (send "unregister YourEmailAddressHere" to majordomo@postgresql.org) Aasmund Midttun Godal aasmund@godal.com - http://www.godal.com/ +47 40 45 20 46