Run SCRIPT from PL/SQL Block

后端 未结 5 1069
执笔经年
执笔经年 2020-12-03 20:17

How to use \"START SCRIPT\" in pl/sql block ?

I want to use something like this

declare
begin
   proc(para1,para2);
   execute immediate \'start prom         


        
5条回答
  •  离开以前
    2020-12-03 20:36

    If you're using sql*plus (or a tool that is using it) then you can do something like this:

    set serveroutput on
    variable a number;
    begin
    :a := &promt;
    dbms_output.put_line(:a);
    end;
    /
    

    If it runs in batch then you can do:

    variable a number;
    begin
    :a := &1;
    dbms_output.put_line(:a);
    end;
    

    and get the value for :a as a parameter-

    sqlplus sdad/fdsfd@fdggd @ 
    

提交回复
热议问题