Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to create constructor function for a pl/sql table?

BEDENov 5 2015 — edited Nov 9 2015

I have created a PL/SQL table of a type like below:

create or replace type typ_tbl_des_text is table of typ_tof_des_text

OK so far, but I'd like to have a constructor function that would perform some validations and raise_application_error when a validation condition is not met.

How to do this?

The typ_tof_des_text I have created with a constructor function, so that the record-level validations are performed in the constructor. And I think that validations between several records are to be performed in a constructor for typ_tbl_des_tex, but can't figure out how to create that type with a constructor.

This post has been answered by Billy Verreynne on Nov 9 2015
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 7 2015
Added on Nov 5 2015
12 comments
1,317 views