Link to home
Start Free TrialLog in
Avatar of ajay_erdci
ajay_erdci

asked on

Oracle Procedure Parameter

Hi All,

Can any one tell me about the difference and functionality of IN , OUT , INOUT type parameter in procedure , what will be the functionality for each one and how they will effect for package and my program.

ajay
Avatar of jpkemp
jpkemp

IN: parameter is passed in
OUT: parameter is passed out
IN OUT: parameter is passed in and passed out

For IN, the argument value in the caller will not change, even if the procedure changes it internally.

For OUT, the argument value cannot be read by the procedure until the procedure itself writes it.

For OUT and IN OUT, the argument must be a writeable variable (i.e. not a literal).

Jeff
Avatar of ajay_erdci

ASKER

Dear Jeff,

can you explain it with any example then only it will be fisible for me.

Thanks in advance,
ajay
ASKER CERTIFIED SOLUTION
Avatar of jpkemp
jpkemp

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial