Skip to content
Advertisement

How to fetch value from JSON document inside MySQL column?

I have written following MySQL Json Array query. The Mysql version is 8.0.18-commercial

The output has 2 columns network and server

I want to modify the JOIN query and only fetch network.name from the table:

I have written the following JOIN but it is giving null for the networkName

Advertisement

Answer

It seems like network is an array that always contains a single object, while you are adressing it as an object.

If so, you just need to change this:

To:

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement