How to Execute stored procedure from SQL Plus?

后端 未结 2 1021
暖寄归人
暖寄归人 2021-01-05 02:31

I have a stored procedure in oracle and want to test it from SQLPlus.

If I use

execute  my_stored_proc (-1,2,0.01) 

I get this erro

2条回答
  •  孤城傲影
    2021-01-05 02:59

    You have two options, a PL/SQL block or SQL*Plus bind variables:

    var z number
    
    execute  my_stored_proc (-1,2,0.01,:z)
    
    print z
    

提交回复
热议问题