Oracle Call Interface Programmer's Guide Release 2 (9.2) Part Number A96584-01 |
|
OCI Datatype Mapping and Manipulation Functions, 107 of 134
Converts an Oracle number to a character string according to a specified format.
sword OCINumberToText ( OCIError *err, CONST OCINumber *number, CONST OraText *fmt, ub4 fmt_length, CONST OraText *nls_params, ub4 nls_p_length, ub4 *buf_size, text *buf );
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()
.
Oracle number to convert.
Conversion format.
Length of the fmt
parameter.
Global Support format specification. If it is a null string ((text *)0
), then the default parameters for the session is used.
Length of the nls_params
parameter.
Size of the buffer.
Buffer into which the converted string is placed.
Refer to the TO_NUMBER conversion function described in the Oracle9i SQL Reference for a description of format and Global Support parameters.
The converted number string is stored in buf
, up to a maximum of buf_size
bytes. This function returns an error if:
number
or buf
is null
|
Copyright © 1996, 2002 Oracle Corporation. All Rights Reserved. |
|