expr1 − expr2), accurate to the day.
Difference between days_diff and datediff:
Syntax
Parameters
-
expr1: the end time. It must be of the DATETIME or DATE type. -
expr2: the start time. It must be of the DATETIME or DATE type.
Returns the day difference between two date expressions (expr1 − expr2), accurate to the day.
expr1 − expr2), accurate to the day.
Difference between days_diff and datediff:
expr1: the end time. It must be of the DATETIME or DATE type.
expr2: the start time. It must be of the DATETIME or DATE type.