Subject | Re: [firebird-support] Trigger and St.procedure |
---|---|
Author | allies_xposs@yahoo.com |
Post date | 2009-05-20T19:17:48Z |
Table name :
Postingtrans (
Mydate date,
Win integer,
Lose integer,
Userby varchar(10));
Create trigger tposting before update on postingtrans....
Call stposting();
End;
Create procedure stposting()
Begin
.. Any code to find win or lose
If bwin then Set new.win=new.win+1
Else set new.lose=new.lose+1
End
End
Sent from my BlackBerry� smartphone from Sinyal Bagus XL, Nyambung Teruuusss...!
-----Original Message-----
From: "Leyne, Sean" <Sean@...>
Date: Wed, 20 May 2009 15:07:13
To: <firebird-support@yahoogroups.com>
Subject: RE: [firebird-support] Trigger and St.procedure
Sean
[Non-text portions of this message have been removed]
Postingtrans (
Mydate date,
Win integer,
Lose integer,
Userby varchar(10));
Create trigger tposting before update on postingtrans....
Call stposting();
End;
Create procedure stposting()
Begin
.. Any code to find win or lose
If bwin then Set new.win=new.win+1
Else set new.lose=new.lose+1
End
End
Sent from my BlackBerry� smartphone from Sinyal Bagus XL, Nyambung Teruuusss...!
-----Original Message-----
From: "Leyne, Sean" <Sean@...>
Date: Wed, 20 May 2009 15:07:13
To: <firebird-support@yahoogroups.com>
Subject: RE: [firebird-support] Trigger and St.procedure
> I am already triPost the full logic of your trigger and the DDL for the trigger table.
>
> new.win=new.win+_win;
>
> Still error. "Unknown system variable win"
Sean
[Non-text portions of this message have been removed]