I have written following MySQL Json Array query. The Mysql version is 8.0.18-commercial
select
networkInfo->>"$.*" as network,
servers->>"$[*]" as server
from table1
where id = 56;
The output has 2 columns network and server of JSON type
network server
--- ---
[ [
"Linux123", "Server123",
"RHEL", "Server1231",
"abc.com" "Server1232"
] ]
I want to modify the SELECT query such that the output has a separate row for every server:
network server
--- ----
[ Server123
"Linux123",
"RHEL",
"abc.com"
]
[ Server1231
"Linux123",
"RHEL",
"abc.com"
]
[ Server1232
"Linux123",
"RHEL",
"abc.com"
]