Oracle Call Interface Programmer's Guide Release 2 (9.2) Part Number A96584-01 |
|
OCI Any Type and Data Functions, 3 of 26
Begins the construction process for a transient type. The type will be anonymous (no name).
sword OCITypeBeginCreate ( OCISvcCtx *svchp, OCIError *errhp, OCITypeCode tc, OCIDuration dur, OCIType **type );
The OCI Service Context.
The OCI error handle. If there is an error, it is recorded in err
and this function returns OCI_ERROR. Obtain diagnostic information by calling OCIErrorGet()
.
The typecode for the type. The typecode could correspond to an object type or a built-in type.
Currently, the permissible values for User Defined Types are:
For Object types, call OCITypeAddAttr()
to add each of the attribute types. For Collection types, call OCITypeSetCollection()
. Subsequently, call OCITypeEndCreate()
to finish the creation process.
The permissible values for built-in type codes are specified in "Typecodes". Additional information on built-in types (precision, scale for numbers, character set information for VARCHAR2
s, etc.) if any, must be set with a subsequent call to OCITypeSetBuiltin()
. Finally, you must use OCITypeEndCreate()
to finish the creation process.
The allocation duration for the type. One of the following:
OCIDurationBegin()
.The OCIType (Type Descriptor) that is being constructed.
To create a persistent named type, use the SQL statement CREATE
TYPE
. Transient types have no identity. They are pure values.
|
Copyright © 1996, 2002 Oracle Corporation. All Rights Reserved. |
|