What are Triggers?

Answers were Sorted based on User's Feedback



What are Triggers?..

Answer / prima krishnan,escubetechnolog

Triggers are user-written programs that are associated with
database tables. You can define a trigger for update,
delete, and insert operations. Whenever the operation takes
place, regardless of the interface that is changing the
data, the trigger program is automatically activated by DB2
database and executes its logic. In this way, complex rules
can be implemented at the database level, totally
independent from the application layer......

Is This Answer Correct ?    14 Yes 2 No

What are Triggers?..

Answer / newbiezhang

trigger is a approach to catch the Data before or after the
Data manipulation performed. we can use triggers to valid
data, save the data change log, or do other manipulation
base on our business logic.

Is This Answer Correct ?    8 Yes 1 No

What are Triggers?..

Answer / sujanindian

Triggers is a self contained set of transact executable
statements which can be invoked during the operations such as
insert,update,delete can be performed in a database file.
We can able to add trigger in a physical file :
ADDPFTRG
to remove a trigger : RMVPFTRG

In the case of SQL/400 we can create trigger by ....

>>STRSQL
>>CREATE TRIGGER TRG_Name
after INSERT/DELETE/UPDATE On PF1
Insert Into PF2 Values ('RECORDS DELETED IN PF1')
>>Delete FROM PF1 Where Recordno = 10
>>SElect * FROM PF2.

In the above code, the records in the PF1 is deleted , at
once the trigger trg_name is fired and the given insert
statement is activated in pf2.

Is This Answer Correct ?    6 Yes 0 No

What are Triggers?..

Answer / mithun

Triggers are user programs that are called when an operation
(Insert,update,delete)occured in a database table. By the
ADDPFTRG command in CL we attached a database pf with the
trigger program.Whenever this PF is changed, the trigger
program is call.

Is This Answer Correct ?    6 Yes 0 No

What are Triggers?..

Answer / ravi shankar porwal

Trigger are events that are fired automatically whenever
there are any changes made to the database file.The actions
that may cause of firing the events are - insert, update or
delete operations on database files.

Is This Answer Correct ?    3 Yes 1 No

What are Triggers?..

Answer / yogesh

Trigger is an automatic action of databse which invoke a
program to perform based on perticular event at perticular
time

There are six type of triggers:
Insert + Before
Insert + After
Update + Before
Update + After
Delete + Before
Delete + After

Is This Answer Correct ?    2 Yes 0 No

What are Triggers?..

Answer / cyjil

TRIGGERS ARE SOME RESTRICTIONS IN A P.F.. TO PROTECT THE
DATAS AND PROTECT THE FILE ALSO....

Is This Answer Correct ?    4 Yes 3 No

What are Triggers?..

Answer / shipra jain

a trigger is automatically executed without any action required by the user .
a trigger defines an action the database should take when some database related event occurs.

Is This Answer Correct ?    1 Yes 0 No

What are Triggers?..

Answer / bala

Triggers are special kind of stored procedures that get
executed automatically when an INSERT, UPDATE or DELETE
operation takes place on a table.

Is This Answer Correct ?    1 Yes 0 No

What are Triggers?..

Answer / sonam

Trigger Fire when any event occur with a particular application.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More IBM AS400 AllOther Interview Questions

What are Control level indicators?

1 Answers  


Write the subfile logic program for the given concept. Load the data to the subfile depends upon the designation where designation is not a key field?

2 Answers  


How to create an Access path in Synon/2E ?

1 Answers  


How can I automate sftp commands(ls & get) in CL program.. If I want to write two scripts one for each command... can u plz tell where the script should be written? & what will be the content of each scripts?

1 Answers  


when are the unique constraints executed?

0 Answers   IBM,






what are the different types of arrays available in rpg ?

1 Answers   IBM,


Define the purpose of the following code (If you know, how would this be written in RPG ILE) HI LO EQ C *IN66 DOUEQ *OFF C KEY1 CHAIN FILEA 90 66 C 66 CALL PGM1 PRM C ENDDO

1 Answers  


what is the maximum number of parameters allowed in rpg?

1 Answers   IBM,


we have 2 PF files with same name, how to copy data's from one file to another through RPG program logic?

3 Answers  


how to change job priority when it is running in sub system ?

11 Answers   IBM,


write a pgm to read p.f using cl pgm?

2 Answers   Ocwen, SLK, TCS,


When will DUMP and DEBUG opcodes be ignored?

1 Answers  


Categories