Find out name of PL/SQL procedure

后端 未结 4 1456
广开言路
广开言路 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条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-04 04:36

    If you are pre-10g, you can 'dig' (parse) it out of dbms_utility.format_call_stack Procedures/functions in packages can be overloaded (and nested), so the package name/line number is normally better than the name.

提交回复
热议问题