tomlogic

Just another Blog.noodle5.com weblog

Can i use the bind variable inside a procedure?

Filed under: Software Educational Forum — at 11:51 pm on Tuesday, August 12, 2008

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 )
declare
i number:=0;
begin
while i<3
loop
update dept set empno=&empno where dname=’&deptname’;
i:=i+1;
end loop;
end;

Read more about it at buzzycode.com

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>