Method, system, and program for implementing a database trigger
Abstract
Provided is a method, system, and program for implementing a database trigger. Upon detecting a trigger event, a determination is made of at least one row in a base table affected by the trigger event. For each column in the base table of a data type that is referenced in a triggered action associated with the trigger event, a reference is generated referencing the data of the data type. The reference is inserted in a transition table column including data of the data type from the affected row in the base table referenced in the triggered action. The reference is used to access the data of the data type when performing the triggered action.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 13 · Forward citations: 24.
Claims (3 — 2 Independent, 1 Dependent)
- Claim 1Independent Claim
A method for implementing a database trigger, comprising: detecting a trigger event; determining at least one row in a base table affected by the trigger event; for each column in the base table of a data type that is referenced in a triggered action associated with the rigger event, generating a reference referencing the data of the data type; inserting the reference in a transition table column including data of the data type from the affected row in a base table referenced in the triggered action; and using the reference to access the data of the data type when performing the triggered acti
- Claim 2Depends on #1
The method of claim 1 , wherein the reference includes a row identifier and version number of the data in the base table column referenced by the triggered action.
- Claim 3Independent Claim
Th
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 24 total)
References Cited — Backward Prior Art (13)
Non-Patent Literature (5)
- Biliris, A. An Efficient Database Storage Structure for Large Dynamic Objects. Eighth International Conference on Data Engineering, Feb. 2-32, 1992, Issue XVI, pp. 301-308. Sponsored by IEEE Computer Society Technical Committee on Data Engineering.
- IBM, Corp. "Enforcing Business Rules with Constraints and Triggers" [online], date unlisted, pp. 1-7. [Retrieved on Jan. 4, 2001].Retrieved from the Internet at URL: <http://www-4.ibm.com/cgi-bin/db2www/data/db2/ubd/winos2unix/support/document.d2w/report?fn=db2v7y0db2y043.htm#HDRKEYCON>.
- IBM, Corp. "Mapping a Relational Database to a Hierarchical File System", IBM Technical Disclosure Bulletin vol. 38 No. 10, Oct. 1995, pp. 309-311.
- IBM, Corp. "SQL Reference", from IBM DB2 Universal Database, Version 6, 1999, pp. 19-22, pp. 690-699 and pp. 1085-1088.
- O'Connnell, W., et al. Optimizer and Parallel Engine Extensions for Handling Expensive Methods Based on Large Objects. 15<th >International Conference on Data Engineering, Mar. 23-26, 1999, Sydney, Australia, pp. 304-313. Sponsored by IEEE Computer Society Technical Committee on Data Engineering.