Find out name of PL/SQL procedure

后端 未结 4 1452
广开言路
广开言路 2021-02-04 03:36

Can PL/SQL procedure in Oracle know it\'s own name?

Let me explain:

CREATE OR REPLACE procedure some_procedure is
    v_procedure_name varchar2(32);
begi         


        
4条回答
  •  -上瘾入骨i
    2021-02-04 04:26

    Try:

    v_procedure_name := $$PLSQL_UNIT;
    

    There's also $$PLSQL_LINE if you want to know which line number you are on.

提交回复
热议问题