I have the following record in the table table_json:
Table:
id doc
---------------------------------------
1
{"name":"Shaw",
"address":{"line1":"L1",
"line2":"L2",
"zipcode":"12345"
}
}
Note: Column doc is of type json. Now i want to print the json data into the form of
the following one.
Expected output:
id name address
--------------------------
1 Shaw L1,L2,12345