Emailid
Password
         
  
    Forgot password

New user Sign Up
 

 

Can i use the bind variable inside a procedure?                            

Author Name Status Posted Time
Poutt Keitis 1/15/2008 11:31:17 PM
Author is Offline

Hello everybody,

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

Code: ( text )

  1. declare
  2. i number:=0;
  3. begin
  4. while i<3
  5. loop
  6. update dept set empno=&empno where dname='&deptname';
  7. i:=i+1;
  8. end loop;
  9. end;


but here it prompts empno and deptname for first t
ime and then uses it for all three times of the lo
op.how do i give three diff values for each of the
three execution.

Thanks in advance

Pouttu.

 

Subject Author Status Date

Re: Can i use the bind variable inside a procedure
?

Potthaccio Vaavaacione 1/17/2008 2:08:52 AM

Re: Is there any provision...?

Poutt Keitis 1/17/2008 2:13:51 AM

Re: No, that is not possible...

Konjanja Takeuchi 1/17/2008 2:23:17 AM

Re: Thanks

Poutt Keitis 1/17/2008 2:25:12 AM

Re: You are welcome

Konjanja Takeuchi 1/17/2008 2:27:03 AM
Related Forums
Optimizing Images
Get a Website Template for Free!!!
Get a Website Template for Free!!!
Do You Sell Your Templates on Ebay?
Template Tutorials





Home | About Us | Site Map | Privacy Policy