Hello ...
I hope I am posting this question to the correct forum. My organization uses DB2 V7 and BMC Catalog Manager V6.
I would like to create a trigger so when a user runs an insert query on table A, the [tt]ADD_USER_ID[/tt] and [tt]ADD_TIMSTAMP[/tt] fields are updated with the user/current timestamp information. I would also like to create triggers for update and delete queries to update the [tt]LAST_CHG_USER_ID[/tt] and [tt]LAST_CHG_TIMESTAMP[/tt] fields of the same record.
Does anyone know how I can create this or where I can read more about it? I’ve tried reading up on IBM’s DB2 UDB for OS/390 Administration Guide, but I get lost as I’m a novice.
Thanks in advance ...
Kent
I hope I am posting this question to the correct forum. My organization uses DB2 V7 and BMC Catalog Manager V6.
I would like to create a trigger so when a user runs an insert query on table A, the [tt]ADD_USER_ID[/tt] and [tt]ADD_TIMSTAMP[/tt] fields are updated with the user/current timestamp information. I would also like to create triggers for update and delete queries to update the [tt]LAST_CHG_USER_ID[/tt] and [tt]LAST_CHG_TIMESTAMP[/tt] fields of the same record.
Does anyone know how I can create this or where I can read more about it? I’ve tried reading up on IBM’s DB2 UDB for OS/390 Administration Guide, but I get lost as I’m a novice.
Thanks in advance ...
Kent