db.l3.ai

Play

lessons

what-changed-in-19

editor

engine: not started

results

Run a query to see rows here.

check

pg_stats knows the table oid

pg_stats gained tableid (oid of the table) and attnum, so no name join is needed.

task

For shop.orders return attnum and attname from pg_stats, using tableid = 'shop.orders'::regclass, ordered by attnum.

hints