statistics

bit_or

Combine integers by bitwise OR. NULL inputs are skipped; empty input returns NULL.

Formal Syntax & Structure

sql syntaxsql
bit_or(integer)

Working Example

Example Snippetsql
SELECT bit_or(v) FROM (VALUES (1),(2),(6)) AS t(v);
SQL Reference