pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rusty Wright <rusty@socrates.Berkeley.EDU>
To: pgsql-admin@postgresql.org
Subject: newbie qs; examining databases and tables
Date: Tue, 15 Oct 2002 16:16:53 -0700 (PDT)
Message-ID: <200210152316.g9FNGrJ13954@socrates.Berkeley.EDU> (raw)

I'm someone with some mysql experience and need to set up postgres for
a product we're evaluating.  In mysql I can use SHOW DATABASES to list
all of the databases on the system, USE DB1 to switch to one of the
databases, SHOW TABLES to list all of the table names in the database
I'm USEing, and DESCRIBE TABLE1 to list all of the column names, data
types, etc. for a table.

How do I do the equivalent with postgresql?  Are there equivalent SQL
commands?



view thread (8+ messages)  latest in thread

Message-ID: <200210152316.g9FNGrJ13954@socrates.Berkeley.EDU>
Permalink:  ../200210152316.g9FNGrJ13954@socrates.Berkeley.EDU/
Also on:    postgresql.org/message-id/200210152316.g9FNGrJ13954@socrates.Berkeley.EDU

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: rusty@socrates.Berkeley.EDU
  Subject: Re: newbie qs; examining databases and tables
  In-Reply-To: <200210152316.g9FNGrJ13954@socrates.Berkeley.EDU>
  References: <200210152316.g9FNGrJ13954@socrates.Berkeley.EDU>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox