Evaluate column value into rows

Posted by Hugo Palma on Stack Overflow See other posts from Stack Overflow or by Hugo Palma
Published on 2010-03-08T11:24:00Z Indexed on 2010/03/08 22:06 UTC
Read the original article Hit count: 172

Filed under:
|
|
|

I have a column whose value is a json array. For example:

[{"att1": "1", "att2": "2"}, {"att1": "3", "att2": "4"}, {"att1": "5", "att2": "6"}]

What i would like is to provide a view where each element of the json array is transformed into a row and the attributes of each json object into columns. Keep in mind that the json array doesn't have a fixed size.

Any ideas on how i can achieve this ?

© Stack Overflow or respective owner

Related posts about mysql

Related posts about mysql-query