MySQL Forums
Forum List  »  MySQL Workbench

Exception when using JSON_TABLE function in MySql Workbench 8.0
Posted by: Karthik Juneni
Date: May 09, 2020 02:46PM

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;

Options: ReplyQuote


Subject
Views
Written By
Posted
Exception when using JSON_TABLE function in MySql Workbench 8.0
1490
May 09, 2020 02:46PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.