Doing multiple steps at once

From: Detlef Jockheck <detlef(at)jockheck(dot)de>
To: pgsql-general(at)postgresql(dot)org
Subject: Doing multiple steps at once
Date: 2003-03-02 12:49:57
Message-ID: 200303021249.h22CnvA16421@krakatau.jockheck.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

Basis: I have two tables (a & b).
1st: I create/clear a temporary table c
2nd: doing a "insert into c select something from a"
3rd: doing a "insert into c select something from b"
4th: calculate a result with "select something from c group by column"
5th: go back to 1st after some checks/corrections in a.

Is it possible to do the four steps (1-4) at once (with a function, procedure
or so?)

ciao
Detlef

--
# Dipl. Ing. (FH) Detlef Jockheck
# E-mail: detlef(at)jockheck(dot)de
# -------------------------------

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Lincoln Yeoh 2003-03-02 13:26:51 Re: automatic creation of oid
Previous Message Bruno Wolff III 2003-03-02 00:31:41 Re: Listing schemas