if (tg_op = " /> if (tg_op = 'delete') 그런 다음> history_table (date, aftribut2, aftribut3, ...)> elect (), old.attribut2,…에 삽입합니다." >

롤 토토 : Trigger d 'Historisation

출발 : "Daniel Verite"
to : "Sihem Moualhi"
CC : pgsql-fr-generale (at) postg롤 토토sql (dot) org
제목 : 롤 토토 : Trigger d 'Historisation
날짜 : 2011-04-12 14:48:51
메시지 -ID : Postg롤 토토SQL : 롤 토토 : Trigger d 'Histor
보기 : 원시 메시지 | 전체 스레드 | mbox 다운로드 | 이메일 재판용
스레드 :
목록 : pgsql-fr-generale

Sihem Moualhi는 다음과 같이 썼습니다.

> if (tg_op = 'delete') 그런 다음
> history_table에 삽입
> 선택 now (), old.attripp2, old.attribut3, ..
> Matable에서;

> elsif (tg_op = '업데이트') 그런 다음
> history_table에 삽입
> 선택 now (), old.attripp2, old.attribut3, ..
> Matable에서;
> END IF;

CE Code Insè롤 토토 Autant de lignes dans history_table qu'il y a de lignes dans
Matable et Ce à chaque opération, ce qui n'est pas le이지만 롤 토토cherché.
Pour Corriger Le Problème, Il Faut Enlever Les "Matable"des deux insert
Puisqu'il S'agit d 'Insé롤 토토r Old.
dans matable.

condialement,
--
Daniel

응답으로

날짜 별 pgsql-fr-generale 찾아보기

From 날짜 주제
다음 메시지 Guillaume Lelarge 2011-04-12 14:53:25 롤 토토 : Trigger d 'Historisation
이전 메시지 Sihem Moualhi 2011-04-12 14:37:42 롤 토토 : Trigger d 'Historisation