add remove split language show hidden hide
db<>fiddle
donate feedback about
By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
CREATE TABLE
INSERT 0 1
CREATE TABLE
INSERT 0 1
id name address id instagram facebook x
1 restaurant1 180 Prince St, New York, NY 10012, United States 1 instagram.com/rastaurant1 fb.com/rest_1 x.com/ristoranti1
SELECT 1
id name address c
1 restaurant1 180 Prince St, New York, NY 10012, United States (1,instagram.com/rastaurant1,fb.com/rest_1,x.com/ristoranti1)
SELECT 1
?column?
{"id": 1, "name": "restaurant1", "address": "180 Prince St, New York, NY 10012, United States", "social_media": {"x": "x.com/ristoranti1", "id": 1, "facebook": "fb.com/rest_1", "instagram": "instagram.com/rastaurant1"}}
SELECT 1
jsonb_pretty
{
    "id": 1,
    "name": "restaurant1",
    "address": "180 Prince St, New York, NY 10012, United States",
    "social_media": {
        "x": "x.com/ristoranti1",
        "id": 1,
        "facebook": "fb.com/rest_1",
        "instagram": "instagram.com/rastaurant1"
    }
}
SELECT 1
id name address array_agg
1 restaurant1 180 Prince St, New York, NY 10012, United States {"(1,instagram.com/rastaurant1,fb.com/rest_1,x.com/ristoranti1)"}
SELECT 1