Show HN: Build entire data access layer with SQL only(backlogic.net) |
Show HN: Build entire data access layer with SQL only(backlogic.net) |
[ { "id": 1, "arr1": [ { "id1": 1 } ], "arr2": [{ "id2": 1, "arr3": [{ "id3": 1, "val": "abc" }] }] } ]
the single SELECT statement for the query is like:
select 10 as id, 1 as id1, 2 as id2, 3 as id3, 'X' as val union all select 20, 2, 4, 6, 'Y'