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
Post a Comment