| Oracle Call Interface Programmer's Guide Release 2 (9.2) Part Number A96584-01 |
|
OCI Datatype Mapping and Manipulation Functions, 64 of 134
Given an interval, produces a string representing the interval.
sword OCIIntervalToText ( dvoid *hndl, OCIError *err, CONST OCIInterval *interval, ub1 lfprec, ub1 fsprec, OraText *buffer, size_t buflen, size_t *resultlen );
The OCI user session handle or the environment handle.
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().
Interval to be converted.
Leading field precision. (The number of digits used to represent the leading field.)
Fractional second precision of the interval (the number of digits used to represent the fractional seconds).
Buffer to hold the result.
The length of buffer.
The length of the result placed into buffer.
The interval literal is output as 'year' or '[year-]month' for INTERVAL YEAR TO MONTH intervals and as 'seconds' or 'minutes[:seconds]' or 'hours[:minutes[:seconds]]' or 'days[ hours[:minutes[:seconds]]]' for INTERVAL DAY TO SECOND intervals (where optional fields are surrounded by brackets).
OCI_SUCCESS,
OCI_INVALID_HANDLE, if err is a null pointer,
OCI_ERROR, if the buffer is not large enough to hold the result.
This section describes the OCI Number functions.
|
![]() Copyright © 1996, 2002 Oracle Corporation. All Rights Reserved. |
|