Quantcast
Channel: MySQL Forums - MySQL Workbench
Viewing all articles
Browse latest Browse all 3739

Exception when using JSON_TABLE function in MySql Workbench 8.0 (no replies)

$
0
0
When executing a simple JSON_TABLE example in MySql Workbench 8.0 getting ""(" is not valid at this position, expecting EOF, ';'" error. I'm using MySql version 8.0.20. Any help is much appreciated.

SELECT tt.*
FROM
JSON_table(
'[{"a":"3"},{"a":2},{"b":1},{"a":0},{"a":[1,2]}]',
"$[*]"
COLUMNS(
rowid FOR ORDINALITY,
ac VARCHAR(100) PATH "$.a" DEFAULT '111' ON EMPTY DEFAULT '999' ON ERROR,
aj JSON PATH "$.a" DEFAULT '{"x": 333}' ON EMPTY,
bx INT EXISTS PATH "$.b"
)
) AS tt;

Viewing all articles
Browse latest Browse all 3739

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>