Call

Asked

Viewed 300 times

2

Does anyone know a method to call a dynamic process?

I am creating an html/css/javascript screen in an oracle database. I created a table with the names of the procedures I want to call. That way when there is a new functionality in the system, do not need to change the main code only add the name of the past in the table.

More or less like this

for c_dados in (select * from tabela where flag = 'S') loop

        htp.p('<div class="brick large" id="'||c_dados.id||'">');
      exxecute immediate 'begin'|| c_dados.nome_proc||'; end;';
         htp.p('</div> ');

     end loop;

But running immediate does not work. Does anyone know any other way?

1 answer

1

nonsense my was missing a space after Begin

execute immediate 'begin '|| c_dados.nome_proc||'; end;';

  • Please accept your question as correct.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.