Re: Triggers and Function's

Поиск
Список
Период
Сортировка
Искать
От
Alam Surya
Тема
Re: Triggers and Function's
Дата
в 00:57:50
Msg-id
012801c3259e$e54e4bc0$9b00a8c0@alam
Список
Дерево обсуждения
Triggers and Function's Campos Chaves <camposchaves@yahoo.com.br>
Re: Triggers and Function's Ewald Geschwinde <webmaster@geschwinde.net>
Re: Triggers and Function's Fabrizio Mazzoni <mazzofab@tiscalinet.it>
Re: Triggers and Function's <btober@seaworthysys.com>
Re: Triggers and Function's "scott.marlowe" <scott.marlowe@ihs.com>
just example :

Create or replace function [function_name()] returns triggers as'
begin
insert into table_b ( field1, field2, field3 )  values ( value1 , values2,
value3 ) ;
return;
end ;'
languange 'plpgsql';

Create trigger trigger_name
      After Insert on [table_name]
      for each row
      execute procedure [function_name()];

regard...

Alam Surya

----- Original Message -----
From: "Campos Chaves" 
To: 
Sent: Thursday, May 29, 2003 3:51 AM
Subject: [GENERAL] Triggers and Function's


Hi,

After I insert on rocord on Table A, I need to insert
another record on Table B. I think that I have to use
triggers and functions. But I don't know how! You can
help me?

Tanks

_______________________________________________________________________
Yahoo! Mail
Mais espaço, mais segurança e gratuito: caixa postal de 6MB, antivírus,
proteção contra spam.
http://br.mail.yahoo.com/

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
    (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)

В списке pgsql-general по дате отправления
От: Alam Surya
Дата:
От: Joe Conway
Дата:
Сообщение: Re: arrays and insert/select
FAQ