dbTalk Databases Forums  

managing triggers

comp.databases.sybase comp.databases.sybase


Discuss managing triggers in the comp.databases.sybase forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Fernand St-Georges
 
Posts: n/a

Default managing triggers - 01-21-2004 , 04:24 PM






Hi,
can someone tell how to write a Trigger; I am familiar with Sybase Sql
Anywhere trigger syntax.
Actually I have three tables MEMBER, CONTRACT and PAYMENT

I need to update the MEMBER.BALANCE once the PAYMENT.AMOUNT is INSERTED
where PAYEMENT.CONTRAC_ID = CONTRACT.CONTRAC_ID
and CONTRAT.MEMBER_ID = MEMBRE.MEMBER_ID

I have more TRIGGERS to write, but with a good example it would be great

In fact, send me as many examples as you can

Thanks

Fernand

fernand.st-georges (AT) videotron (DOT) ca





Reply With Quote
  #2  
Old   
Willie Kraatz
 
Posts: n/a

Default Re: managing triggers - 01-22-2004 , 07:58 AM






See the documentation at http://sybooks.sybase.com/as.html
the Transact-SQL User's Guide. There is a chapter on triggers with multiple
examples.
"Fernand St-Georges" <fernand.st-Georges (AT) videotron (DOT) ca> wrote

Quote:
Hi,
can someone tell how to write a Trigger; I am familiar with Sybase Sql
Anywhere trigger syntax.
Actually I have three tables MEMBER, CONTRACT and PAYMENT

I need to update the MEMBER.BALANCE once the PAYMENT.AMOUNT is INSERTED
where PAYEMENT.CONTRAC_ID = CONTRACT.CONTRAC_ID
and CONTRAT.MEMBER_ID = MEMBRE.MEMBER_ID

I have more TRIGGERS to write, but with a good example it would be great

In fact, send me as many examples as you can

Thanks

Fernand

fernand.st-georges (AT) videotron (DOT) ca







Reply With Quote
  #3  
Old   
Stephen Simpson
 
Posts: n/a

Default Re: managing triggers - 02-13-2004 , 05:35 PM



Big guy, sorry to be so blunt, but have you tried RTFM? Sybase is
superbly documented.

;-)

Steve

On Wed, 21 Jan 2004 17:24:28 -0500, "Fernand St-Georges"
<fernand.st-Georges (AT) videotron (DOT) ca> wrote:

Quote:
Hi,
can someone tell how to write a Trigger; I am familiar with Sybase Sql
Anywhere trigger syntax.
Actually I have three tables MEMBER, CONTRACT and PAYMENT

I need to update the MEMBER.BALANCE once the PAYMENT.AMOUNT is INSERTED
where PAYEMENT.CONTRAC_ID = CONTRACT.CONTRAC_ID
and CONTRAT.MEMBER_ID = MEMBRE.MEMBER_ID

I have more TRIGGERS to write, but with a good example it would be great

In fact, send me as many examples as you can

Thanks

Fernand

fernand.st-georges (AT) videotron (DOT) ca





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.