LEAD

You are viewing an old version of this article. View the current version here.
MariaDB starting with 10.2.2

The LEAD() function was first introduced with other window functions in MariaDB 10.2.

Contents

  1. Syntax
  2. Description

Syntax

LEAD (expr[, offset]) OVER ( 
  [ PARTITION BY partition_expression ] 
  [ ORDER BY order_list ]
)

Description

The LEAD function accesses data from a following row in the same result set without the need for a self-join.

Comments

Comments loading...
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.