pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ezequias Rodrigues da Rocha <ezequias.rocha@gmail.com>
To: pgsql-sql@postgresql.org
Subject: Trigger with Stored Procedure [Client Points]
Date: Wed, 30 Aug 2006 08:56:32 -0300
Message-ID: <55c095e90608300456x4a24948fw9edc24aaa253c256@mail.gmail.com> (raw)

Hi list,

I have a table like this:

Points
---------------------------------
Id
operation
value

and another two tables like this

Client                                        Rule
------------------------                       -----------------------
id                                             id
name                                       percent
Points


ps: The Points table is a table that represent each moviment of the Client.


I need to make a trigger that see after all insert on Points table and
update the client table based on the percent on the Rule table.

Anyone that would like to help me I will be very welcomed.

My best regards ...
Ezequias






I must do trigger to update a table based on a field a Stored Procedure to
update a table based

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
                                  Atenciosamente (Sincerely)
                        Ezequias Rodrigues da Rocha
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
A pior das democracias ainda é melhor do que a melhor das ditaduras
The worst of democracies is still better than the better of dictatorships
http://ezequiasrocha.blogspot.com/

view thread (3+ messages)  latest in thread

Message-ID: <55c095e90608300456x4a24948fw9edc24aaa253c256@mail.gmail.com>
Permalink:  ../55c095e90608300456x4a24948fw9edc24aaa253c256@mail.gmail.com/
Also on:    postgresql.org/message-id/55c095e90608300456x4a24948fw9edc24aaa253c256@mail.gmail.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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: ezequias.rocha@gmail.com
  Subject: Re: Trigger with Stored Procedure [Client Points]
  In-Reply-To: <55c095e90608300456x4a24948fw9edc24aaa253c256@mail.gmail.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