When I'm reading JSON data -
Sample query:
SELECT *
FROM
JSON_TABLE(
CONCAT('[', '351615,12345678', ']'),
"$[*]"
COLUMNS(
ids BIGINT(20) PATH "$"
)
) AS tt
Error :
"Missing a comma or ']' after an array element." at position 2.
When I remove 00
in front of integer it is giving proper result.
SELECT *
FROM
JSON_TABLE(
CONCAT('[', '351615,12345678', ']'),
"$[*]"
COLUMNS(
ids BIGINT(20) PATH "$"
)
) AS tt
Output:
351615
12345678
Can any one suggest me what I'm missing?