Re: PL/pgSQL examples NOT involving functions - Mailing list pgsql-sql

From Josh Berkus
Subject Re: PL/pgSQL examples NOT involving functions
Date
Msg-id web-506947@davinci.ethosmedia.com
Whole thread Raw
In response to PL/pgSQL examples NOT involving functions  (Roland Roberts <roland@astrofoto.org>)
Responses Re: PL/pgSQL examples NOT involving functions  (Roland Roberts <roland@astrofoto.org>)
List pgsql-sql
Roland,

Please do not cross-post to multiple lists.

> How can I write a few lines of PL/pgSQL which do not involve creating
> a function?  I can find no examples of this in the docs, but say I
> would like to do something like

You can't.  PL/pgSQL, like PL/Perl and PL/Tcl, may only be used in
functions.

-Josh


______AGLIO DATABASE SOLUTIONS___________________________                                      Josh Berkus Complete
informationtechnology      josh@agliodbs.com  and data management solutions       (415) 565-7293 for law firms, small
businesses       fax 621-2533   and non-profit organizations.      San Francisco
 


pgsql-sql by date:

Previous
From: Roland Roberts
Date:
Subject: Re: INSERT question
Next
From: Roland Roberts
Date:
Subject: Re: PL/pgSQL examples NOT involving functions