ALL_FUNC

All functions > ARRAY > ALL_FUNC

Returns true if all elements in the boolean array are true.

Syntax

ALL_FUNC(array)
sql

Arguments

ParameterTypeRequiredDescription
arrayARRAYBOOLEANYesArray of boolean values to check

Returns

BOOLEAN - true if all elements are true, false otherwise, NULL for empty arrays

Notes

  • Returns NULL for empty arrays
  • Returns false if any element is false
  • Can be used with operator syntax: ALL(val1, val2, val3)
  • NULL values in array will result in NULL return value

Aliases

  • ARRAY_ALL

Examples

Last update at: 2025/10/13 10:23:46