| Oracle Call Interface Programmer's Guide Release 2 (9.2) Part Number A96584-01 |
|
OCI Relational Functions, 26 of 38
Returns a descriptor of a parameter specified by position in the describe handle or statement handle.
sword OCIParamGet ( CONST dvoid *hndlp, ub4 htype, OCIError *errhp, dvoid **parmdpp, ub4 pos );
A statement handle or describe handle. The OCIParamGet() function will return a parameter descriptor for this handle.
The type of the handle passed in the hndlp parameter. Valid types are:
An error handle you can pass to OCIErrorGet() for diagnostic information in the event of an error.
A descriptor of the parameter at the position given in the pos parameter, of handle type OCI_DTYPE_PARAM.
Position number in the statement handle or describe handle. A parameter descriptor will be returned for this position.
This call returns a descriptor of a parameter specified by position in the describe handle or statement handle. Parameter descriptors are always allocated internally by the OCI library. They can be freed using OCIDescriptorFree(). For example, if you fetch the same column metadata for every execution of a statement, then the program will leak memory unless you explicitly free the parameter descriptor between each call to OCIParamGet().
| See Also:
See Appendix A, "Handle and Descriptor Attributes", for more detailed information about parameter descriptor attributes. |
OCIAttrGet(), OCIAttrSet(), OCIParamSet(), OCIDescriptorFree()
|
![]() Copyright © 1996, 2002 Oracle Corporation. All Rights Reserved. |
|