Parameter | Type |
---|---|
startDate | datetimestamp, datetime, date, time, gyear, gyearmonth |
endDate | datetimestamp, datetime, date, time, gyear, gyearmonth |
Returns: integer
Example
query:
SELECT DATE_COMPARE(CAST("2018-01-02" AS DATE), CAST("2018-01-03" AS DATE))
results:
date_compare |
---|
-1 |