Re: Trigger with Stored Procedure [Client Points]

Поиск
Список
Период
Сортировка
От Aaron Bono
Тема Re: Trigger with Stored Procedure [Client Points]
Дата
Msg-id bf05e51c0608310829p25dc5807u6533bc3f1db165f9@mail.gmail.com
обсуждение исходный текст
Ответ на Trigger with Stored Procedure [Client Points]  ("Ezequias Rodrigues da Rocha" <ezequias.rocha@gmail.com>)
Список pgsql-sql
On 8/30/06, Ezequias Rodrigues da Rocha <ezequias.rocha@gmail.com> wrote:
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.

 
I am not exactly sure what you are trying to do here.  Can you provide an example of the data and what you want to occur?

==================================================================
   Aaron Bono
   Aranya Software Technologies, Inc.
   http://www.aranya.com
   http://codeelixir.com
==================================================================

В списке pgsql-sql по дате отправления:

Предыдущее
От: Joe
Дата:
Сообщение: Re: ERROR: SELECT query has no destination for result data
Следующее
От: "Ezequias Rodrigues da Rocha"
Дата:
Сообщение: How to get the row that start a trigger