Skip to content
Advertisement

How to extract the information from JSon in MYSQL

I have Sample Data

I’m getting Data Like this :

I’m trying to get output like this :

Can any one Suggest me .

Advertisement

Answer

In MySQL 8.0, you can use json_table() for this:

Or if you want the results as a scalar value:

In earlier versions, you would typically use a table of numbers and json_extract():

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