Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Displaying table definition

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
0
0
Hi,
After creating a table in PostgreSQL
how do I display the table definition
(inames of columns as well as the column
types)? In Oracle this would be done using
DESCRIBE table_name, but there seems
to be no DESCRIBE in PostgreSQQL.
Help would be hugely appreciated.

Tom
 
run psql <databse name>

type \d <tablename>

\? will get you all the internal psql comands
\h will get you a list of suported sql commands
\h <command> will get you a detailed description of the sytax etc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top