| Oracle Call Interface Programmer's Guide Release 9.0.1 Part Number A89857-01 |
|
OCI Datatype Mapping and Manipulation Functions, 20 of 135
Compares two dates.
sword OCIDateCompare ( OCIError *err, CONST OCIDate *date1, CONST OCIDate *date2, sword *result );
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 |
This function returns and error if an invalid date is passed to it.
|
|
![]() Copyright © 1996-2001, Oracle Corporation. All Rights Reserved. |
|