I am new to object-relational databases, currently teaching myself from a textbook.
When creating user-defined types in Oracle, with tables of UDT objects, is it possible to use procedures, cursors, triggers etc. or are these functions only usable with relational databases?
I have spent time searching online to find this answer myself but I'm at a point where I have read so much on the topic it has me confused, so I thought it could be answered simply here (hopefully).
Yes.
No.
Then:
Outputs:
Showing that the trigger has worked, generating
IDvalues for the rows.and
Outputs:
Showing an example of a cursor from a function. Procedures are similarly possible and are left as an example for the OP.
db<>fiddle here