跳转到内容

如果组中任一值为 TRUE,则返回 TRUE。

func.bool_or(get_column(table, 'is_active'))
func.bool_or(get_column(table, 'is_active'))
BOOL_OR(<is_active>)
SELECT department, BOOL_OR(is_active) FROM employees GROUP BY department;
┌────────────┬─────────────────────┐
│ department │ bool_or(is_active) │
├────────────┼─────────────────────┤
│ Sales │ 1 │
│ IT │ 1 │
└────────────┴─────────────────────┘