Oracle Call Interface Programmer's Guide Release 2 (9.2) Part Number A96584-01 |
|
OCI Datatype Mapping and Manipulation Functions, 33 of 134
Compares two datetime values.
sword OCIDateTimeCompare ( dvoid *hndl, OCIError *err, CONST OCIDateTime *date1, CONST OCIDateTime *date2, sword *result );
The OCI user session handle or 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()
.
Dates to be compared.
Comparison result:
Comparison result | Output in result parameter |
---|---|
date1 < date2 |
-1 |
date1 = date2 |
0 |
date1 > date2 |
1 |
OCI_SUCCESS,
OCI_INVALID_HANDLE, if err is a null pointer,
OCI_ERROR, if an invalid date is used, or if the input date arguments are not of mutually comparable types.
|
Copyright © 1996, 2002 Oracle Corporation. All Rights Reserved. |
|