Skip site navigation (1) Skip section navigation (2)

Re: [SQL] PL/pgSQL examples NOT involving functions

From: "Aasmund Midttun Godal" <postgresql(at)envisity(dot)com>
To: roland(at)astrofoto(dot)org
Cc: pgsql-docs(at)postgresql(dot)org, pgsql-sql(at)postgresql(dot)org
Subject: Re: [SQL] PL/pgSQL examples NOT involving functions
Date: 2001-11-19 13:51:17
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-docspgsql-sql
On 18 Nov 2001 22:57:05 -0500, Roland Roberts <roland(at)astrofoto(dot)org> 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(at)rlenter(dot)com                     76-15 113th Street, Apt 3B
> roland(at)astrofoto(dot)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(at)postgresql(dot)org)

Aasmund Midttun Godal

aasmund(at)godal(dot)com -
+47 40 45 20 46

In response to


pgsql-docs by date

Next:From: Roland RobertsDate: 2001-11-19 14:42:26
Subject: Re: PL/pgSQL examples NOT involving functions
Previous:From: Vince VielhaberDate: 2001-11-19 12:02:17
Subject: Re: release docs

pgsql-sql by date

Next:From: Dino CherianDate: 2001-11-19 13:57:36
Subject: How can I return more than one row of data from pl/pgsql
Previous:From: GuruduttDate: 2001-11-19 10:42:25
Subject: PqReadData()

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group