Oracle has cursor expressions that returns a resultset inside a cell from the parent resultset. The whole resultset could then be serialized to json, xml or whatever
I wish there was an equivalent function in PostgreSQL. I've even asked a question about that on stackoverflow:
4 comments
[ 0.21 ms ] story [ 21.8 ms ] threadI wish there was an equivalent function in PostgreSQL. I've even asked a question about that on stackoverflow:
https://stackoverflow.com/questions/8637050/cursor-inside-sq...
As a disclosure, I work on the BigQuery team.