plsql - how to retrive the value of variables outside dynamic pl-sql? -


i perform following query:

declare    number; begin   execute immediate 'select count(1) sometable' returning i;   dbms_output.put_line(i); end; 

and error: returning clause must used insert, update , delete!

just small syntax error (no returning):

declare     number; begin     execute immediate 'select count(1) user_tables' i;     dbms_output.put_line(i); end; 

Comments

Popular posts from this blog

ios - Change Storyboard View using Seague -

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -