Documentation Home
MySQL 8.0 Reference Manual
Related Documentation Download this Manual
PDF (US Ltr) - 46.1Mb
PDF (A4) - 46.1Mb
PDF (RPM) - 41.5Mb
HTML Download (TGZ) - 10.6Mb
HTML Download (Zip) - 10.6Mb
HTML Download (RPM) - 9.1Mb
Man Pages (TGZ) - 220.4Kb
Man Pages (Zip) - 325.8Kb
Info (Gzip) - 4.1Mb
Info (Zip) - 4.1Mb
Excerpts from this Manual

MySQL 8.0 Reference Manual  /  ...  /  Window Function Restrictions

12.21.5 Window Function Restrictions

The SQL standard imposes a constraint on window functions that they cannot be used in UPDATE or DELETE statements to update rows. Using such functions in a subquery of these statements (to select rows) is permitted.

MySQL does not support these window function features:

  • DISTINCT syntax for aggregate window functions.

  • Nested window functions.

  • Dynamic frame endpoints that depend on the value of the current row.

The parser recognizes these window constructs which nevertheless are not supported:

  • The GROUPS frame units specifier is parsed, but produces an error. Only ROWS and RANGE are supported.

  • The EXCLUDE clause for frame specification is parsed, but produces an error.

  • IGNORE NULLS is parsed, but produces an error. Only RESPECT NULLS is supported.

  • FROM LAST is parsed, but produces an error. Only FROM FIRST is supported.