PostgreSQL - Advanced Features
Given the composite type and table:
What will be the output of this query?
CREATE TYPE address AS (city text, zip integer);
CREATE TABLE users (id serial PRIMARY KEY, name text, addr address);What will be the output of this query?
SELECT (addr).city FROM users WHERE id = 1;