- Categories:
Semi-structured Data Functions (Array/Object)
OBJECT_DELETE¶
Returns an object containing the contents of the input (i.e.source) object with one or more keys removed.
Syntax¶
OBJECT_DELETE( <object>, <key1> [, <key2>, ... ] )
Arguments¶
object
The source object.
key1
,key2
Key to be omitted from the returned object.
Examples¶
SELECT OBJECT_DELETE(OBJECT_CONSTRUCT('a', 1, 'b', 2, 'c', 3), 'a', 'b'); -------------------------------------------------------------------+ OBJECT_DELETE(OBJECT_CONSTRUCT('A', 1, 'B', 2, 'C', 3), 'A', 'B') | -------------------------------------------------------------------+ { | "c": 3 | } | -------------------------------------------------------------------+