Oracle Call Interface Programmer's Guide Release 2 (9.2) Part Number A96584-01 |
|
OCI Datatype Mapping and Manipulation Functions, 81 of 134
Converts character string to Oracle number.
sword OCINumberFromText ( OCIError *err, CONST OraText *str, ub4 str_length, CONST OraText *fmt, ub4 fmt_length, CONST OraText *nls_params, ub4 nls_p_length, OCINumber *number );
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()
.
Input string to convert to Oracle number.
Size of the input string.
Conversion format.
Length of the fmt
parameter.
Global Support format specification. If it is the null string (""), then the default parameters for the session is used.
Length of the nls_params
parameter.
Given string converted to number.
Converts the given string to a number according to the specified format. Refer to the TO_NUMBER conversion function described in the Oracle9i SQL Referenceffor a description of format and multilingual parameters.
This function returns an error if there is an invalid format, an invalid multibyte format, or an invalid input string, if number
or str
is null, or if str_length
is zero.
|
Copyright © 1996, 2002 Oracle Corporation. All Rights Reserved. |
|