@@ -18613,6 +18613,8 @@ where <replaceable class="parameter">json_table_column</replaceable> is:
18613
18613
[ { KEEP | OMIT } QUOTES [ ON SCALAR STRING ] ]
18614
18614
[ { ERROR | NULL | EMPTY { ARRAY | OBJECT } } ON EMPTY ]
18615
18615
[ { ERROR | NULL | EMPTY { ARRAY | OBJECT } } ON ERROR ]
18616
+ | <replaceable>name</replaceable> <replaceable>type</replaceable> EXISTS [ PATH <replaceable>json_path_specification</replaceable> ]
18617
+ [ { ERROR | TRUE | FALSE | UNKNOWN } ON ERROR ]
18616
18618
| NESTED PATH <replaceable>json_path_specification</replaceable> [ AS <replaceable>path_name</replaceable> ]
18617
18619
COLUMNS ( <replaceable>json_table_column</replaceable> [, ...] )
18618
18620
| <replaceable>name</replaceable> FOR ORDINALITY
@@ -18785,6 +18787,38 @@ where <replaceable class="parameter">json_table_column</replaceable> is:
18785
18787
</listitem>
18786
18788
</varlistentry>
18787
18789
18790
+ <varlistentry>
18791
+ <term>
18792
+ <literal>
18793
+ <replaceable>name</replaceable> <replaceable>type</replaceable>
18794
+ EXISTS [ PATH <replaceable>json_path_specification</replaceable> ]
18795
+ </literal>
18796
+ </term>
18797
+ <listitem>
18798
+
18799
+ <para>
18800
+ Gerenates a column and inserts a boolean item into each row of this column.
18801
+ </para>
18802
+ <para>
18803
+ The provided <literal>PATH</literal> expression parses the
18804
+ row pattern defined by <replaceable>json_api_common_syntax</replaceable>,
18805
+ checks whether any SQL/JSON items were returned, and fills the column with
18806
+ resulting boolean value, one for each row.
18807
+ The specified <replaceable>type</replaceable> should have cast from
18808
+ <type>boolean</type>.
18809
+ If the <literal>PATH</literal> expression is omitted,
18810
+ <function>JSON_TABLE</function> uses the
18811
+ <literal>$.<replaceable>name</replaceable></literal> path expression,
18812
+ where <replaceable>name</replaceable> is the provided column name.
18813
+ </para>
18814
+ <para>
18815
+ Optionally, you can add <literal>ON ERROR</literal> clause to define
18816
+ error behavior. This clause have the same syntax and semantics as in
18817
+ <xref linkend="functions-jsonexists"/>.
18818
+ </para>
18819
+ </listitem>
18820
+ </varlistentry>
18821
+
18788
18822
<varlistentry>
18789
18823
<term>
18790
18824
<literal>NESTED PATH <replaceable>json_path_specification</replaceable> [ AS <replaceable>json_path_name</replaceable> ]
0 commit comments