nerdexam
PostgreSQL_CE

PGCES-02 · Question #28

Which psql command do you need to execute to display the list of tables in the currently connected database?

The correct answer is E. \dt. See the full explanation below for the reasoning.

Question

Which psql command do you need to execute to display the list of tables in the currently connected database?

Options

  • ASELECT * FROMpg_table_list;
  • BSHOW tables;
  • C\dT
  • D\dt "database_name"
  • E\dt

How the community answered

(31 responses)
  • A
    6% (2)
  • B
    10% (3)
  • C
    3% (1)
  • E
    81% (25)

Community Discussion

No community discussion yet for this question.

Full PGCES-02 Practice