can i use the bind variable inside a procedure
and the query like update emp set empname=:name where empno=:no;
but i work like update emp set empname=&name where empno=&no inside procedures it works properly
but here it prompts empno and deptname for first time and then uses it for all three times of the loop.how do i give three diff values for each of the three execution
and the query like update emp set empname=:name where empno=:no;
but i work like update emp set empname=&name where empno=&no inside procedures it works properly
Code:
declare i number:=0; begin while i<3 loop update dept set empno=&empno where dname='&deptname'; i:=i+1; end loop; end;
Comment