Explain IN, OUT and INOUT in procedures.Values passed to on oracle function can be either of type IN, OUT or INOUT which decides how variables can be used within the procedure.
IN : A variable passed in this mode is of read only nature. This is to say, the value cannot be changed and its scope is restricted within the procedure. The procedure receives a value from this argument when the procedure is called.
OUT : In this mode, a variable is write only and can be passed back to the calling program. It cannot be read inside the procedure and needs to be assigned a value.
INOUT : This procedure has features of both IN and OUT mode. The procedure can also read the variables value and can also change it to pass it to the calling function.Explain IN, OUT and INOUT in procedures. IN, OUT and INOUT are the arguments that are passed to the procedures.
- IN is a 'read only' argument and must be initialised. - OUT is an uninitialised argument which must be initialized by a function. - INOUT - A combination of the two above. That is, an initialised argument which can be written to
|