Aan de slagGa gratis aan de slag

What columns are in your database?

Just like pg_catalog.pg_tables can be incredibly helpful for listing all the tables in your database, information_schema.columns can be used to list the columns of these tables. In this exercise, you will combine these system tables to get a list of all of the columns for all your tables (in the 'public' schema).

Note: These system tables are specific to PostgreSQL but similar tables exist for other databases (see slides).

Deze oefening maakt deel uit van de cursus

Applying SQL to Real-World Problems

Cursus bekijken

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

-- Select all columns from the information_schema.columns table
___
___;
Code bewerken en uitvoeren