MAP_CONTAINS_KEY
functionsupportedCore SQL functionsDetermines whether the specified MAP contains the specified key.
Syntax
MAP_CONTAINS_KEY( <key> , <map> )
Parameters
| Name | Required | Description |
|---|---|---|
key | required | The key to find. |
map | required | The map to be searched. |
Returns
- Returns TRUE if the specified map contains the specified key. - Returns FALSE if the specified map doesn’t contain the specified key.
Usage notes
- The type of the key expression must match the type of the map’s key. If the type is VARCHAR, the types can be different lengths.
- For NULL input, the output is NULL.