Display the Structure of PostgreSQL/PgSQL Table Fields


From within the psql monitor, issue the following command to view the structure of the table named ‘elephants’:

\d elephants

The Conversation

Follow the reactions below and share your own thoughts.

One Response to “Display the Structure of PostgreSQL/PgSQL Table Fields”

  1. September 09, 2010 at 6:50 am, Jassi Paramjit said:

    Thanks Sir, I really need this coomand

    Reply

Leave a Reply

You may also like-

List the Databases on a PostgreSQL/PgSQL ServerList the Databases on a PostgreSQL/PgSQL ServerFrom within the psql monitor, use the following command to list all of the databases in the server: \l Alternatively, you can list the ... Display or show tables in a PostgreSQL/PgSQL databaseDisplay or show tables in a PostgreSQL/PgSQL databaseFrom the PostgreSQL psql monitor, use the following command to view the tables in the current database: \dt