Skip to main content
Returns the minute difference between two date expressions (expr1 − expr2), accurate to the minute.

Syntax

Parameters

  • expr1: the end time. It must be of the DATETIME type.
  • expr2: the start time. It must be of the DATETIME type.

Return value

Returns a BIGINT value. NULL is returned if the date does not exist, for example, 2022-02-29.

Examples