in a similar situation i uses
RDB$SET_CONTEXT() and RDB$GET_CONTEXT()
initialize trigger ON CONNECT
On Monday, January 25, 2016 11:17 AM, "Luigi Siciliano luigisic@tiscalinet.it [firebird-support]" <firebird-support@yahoogroups.com> wrote:
Hallo,
I Have a table with a column (TrigSign) that is a signal
(programmatically setted without direct users interactions) for a
BeforeInsert/Update trigger to do some updates in other table:
Example:
If TrigSign = 0 do Nothing
else If TrigSign = 1 do Something
else if TrigSign = 2 do Somethings other, etc,
Somethings in others tables are to do only once even the user modify the
rows of the table that contains TrigSign column or I run a
storedprocedure that involves in fire the trigger.
I need setting TrigSign = 0 after run the BeforeInsert/Update trigger to
prevent accidentally execution of the trigger.
How I can do this?
I need a After Insert/Update trigger? But in this case I implement a
recursive loop Before-After Insert/Update Trigger?
Thanks
--
Luigi Siciliano
--------------------------
--
I Have a table with a column (TrigSign) that is a signal
(programmatically setted without direct users interactions) for a
BeforeInsert/Update trigger to do some updates in other table:
Example:
If TrigSign = 0 do Nothing
else If TrigSign = 1 do Something
else if TrigSign = 2 do Somethings other, etc,
Somethings in others tables are to do only once even the user modify the
rows of the table that contains TrigSign column or I run a
storedprocedure that involves in fire the trigger.
I need setting TrigSign = 0 after run the BeforeInsert/Update trigger to
prevent accidentally execution of the trigger.
How I can do this?
I need a After Insert/Update trigger? But in this case I implement a
recursive loop Before-After Insert/Update Trigger?
Thanks
--
Luigi Siciliano
--------------------------
--
__._,_.___
Posted by: Virna Constantin <costel_61@yahoo.com>
| Reply via web post | • | Reply to sender | • | Reply to group | • | Start a New Topic | • | Messages in this topic (2) |
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Visit http://www.firebirdsql.org and click the Documentation item
on the main (top) menu. Try FAQ and other links from the left-side menu there.
Also search the knowledgebases at http://www.ibphoenix.com/resources/documents/
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Visit http://www.firebirdsql.org and click the Documentation item
on the main (top) menu. Try FAQ and other links from the left-side menu there.
Also search the knowledgebases at http://www.ibphoenix.com/resources/documents/
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
.
__,_._,___
No comments:
Post a Comment