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

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -