uCreate
or replace trigger u_uml_attrib
u Instead of Insert on
uml_attrib
u For each row
uDeclare
u pragma autonomous_transaction;
uBegin
u if check(:new.attrib_cd)=‘Y’
then
u execute immediate
u ‘ alter table ’||:new.class_cd
u ||‘ add column ’||:new.attrib_cd
u ||‘ ’||:new.datatype;
u commit;
uEnd;