Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 649 Bytes

arraycontainsstring.md

File metadata and controls

31 lines (23 loc) · 649 Bytes
description
This section contains reference documentation for the arrayContainsString function.

arrayContainsString

Checks if string value exists in array.

Signature

arrayContainsString('colName', valueToFind)

Usage Examples

These examples are based on the Hybrid Quick Start.

select DivTailNums, 
       arrayContainsString(DivTailNums, 'N7713A') AS index
from airlineStats 
WHERE arraylength(DivTailNums) >= 2
limit 5
DivTailNums index
N7713A,N7713A true
N344AA,N344AA false
N7713A,N7713A true