Received: from mail.astrofoto.org (dsl092-102-177.nyc2.dsl.speakeasy.net [66.92.102.177]) by postgresql.org (8.11.3/8.11.4) with ESMTP id fAJ3v3m11637; Sun, 18 Nov 2001 22:57:04 -0500 (EST) (envelope-from roland@astrofoto.org) Received: from kuiper.rlent.pnet (IDENT:root@kuiper.rlent.pnet [192.168.2.50]) by mail.astrofoto.org (8.11.6/8.11.6) with ESMTP id fAJ3v7I21478; Sun, 18 Nov 2001 22:57:07 -0500 Received: (from roland@localhost) by kuiper.rlent.pnet (8.11.6/8.11.0) id fAJ3v5w03167; Sun, 18 Nov 2001 22:57:05 -0500 X-Authentication-Warning: kuiper.rlent.pnet: roland set sender to roland@rlenter.com using -f To: pgsql-docs@postgresql.org, pgsql-sql@postgresql.org Subject: Re: [SQL] PL/pgSQL examples NOT involving functions References: <20011115215049.14167.qmail@ns.krot.org> From: Roland Roberts Date: 18 Nov 2001 22:57:05 -0500 In-Reply-To: <20011115215049.14167.qmail@ns.krot.org> Message-ID: Lines: 30 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200111/48 X-Sequence-Number: 1121 >>>>> "Aasmund" == Aasmund Midttun Godal writes: 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. 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