pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Steven Lembark <lembark@wrkhors.com>
To: pgsql-general@lists.postgresql.org
Cc: lembark@wrkhors.com
Subject: Re: execute block like Firebird does
Date: Sun, 11 Feb 2018 09:52:41 -0600
Message-ID: <20180211095241.494f60ac@wrkhors.com> (raw)
In-Reply-To: <CAPfkCSB92QYdXRsAjU63_q9wiA+o7-UB3TyJ=oSJB+GWceJwPw@mail.gmail.com>
References: <1518328644815-0.post@n3.nabble.com>
	<ecd15713-94c2-7532-b5cf-b448cd9bb652@a-kretschmer.de>
	<CAPfkCSB92QYdXRsAjU63_q9wiA+o7-UB3TyJ=oSJB+GWceJwPw@mail.gmail.com>


> > you can use a DO - block:
> >
> >
> > https://www.postgresql.org/docs/current/static/sql-do.html
> >  
> 
> But DO blocks returns "void", I mean you can't return values/records
> from this statement.

Insert the necessary records into a temporary table, process them,
post-process them into variables or destination table?

-- 
Steven Lembark                                       1505 National Ave
Workhorse Computing                                 Rockford, IL 61103
lembark@wrkhors.com                                    +1 888 359 3508




view thread (23+ messages)  latest in thread

Message-ID: <20180211095241.494f60ac@wrkhors.com>
Permalink:  ../20180211095241.494f60ac@wrkhors.com/
Also on:    postgresql.org/message-id/20180211095241.494f60ac@wrkhors.com

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: lembark@wrkhors.com
  Subject: Re: execute block like Firebird does
  In-Reply-To: <20180211095241.494f60ac@wrkhors.com>
  References: <1518328644815-0.post@n3.nabble.com> <ecd15713-94c2-7532-b5cf-b448cd9bb652@a-kretschmer.de> <CAPfkCSB92QYdXRsAjU63_q9wiA+o7-UB3TyJ=oSJB+GWceJwPw@mail.gmail.com> <20180211095241.494f60ac@wrkhors.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