ONAFTERDELETE Table Constraint
Table constraint activated after a record in the table is deleted
A constraint is used to define rules that help to provide data integrity. TABLE constraints apply to table-based operations. You must have ALTER privilege on the table. The table will be locked for EXCLUSIVE use during the operation.
The ONAFTERDELETE table constraint is activated after a record in the table is deleted. The <procedure> specified must be a character expression evaluating to a procedure name. If no file extension is included, '.prg' is assumed. The specified procedure is run after the operation to delete a record is executed.
ALTER TABLE customer; modify ONFTERDELETE "customer_afterdelete"