JSON_CONTAINS_PATH
Syntax
Description
Indicates whether the given JSON document contains data at the specified path or paths. Returns 1
if it does, 0
if not and NULL if any of the arguments are null.
The return_arg can be one
or all
:
one
- Returns1
if at least one path exists within the JSON document.all
- Returns1
only if all paths exist within the JSON document.
Examples
This page is licensed: CC BY-SA / Gnu FDL
Last updated
Was this helpful?