Re: SHOW

From: "Joe Conway" <joseph(dot)conway(at)home(dot)com>
To: <sb(at)ows(dot)es>, "bpalmer" <bpalmer(at)crimelabs(dot)net>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: SHOW
Date: 2001-09-04 06:50:35
Message-ID: 025d01c1350d$e682e6f0$0705a8c0@jecw2k1
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> > > What is the equivalent to the mysql's:
> > > SHOW COLUMNS FROM [TABLENAME];
> >
> > in psql, \d will show you all tables and \d TABLE will show you the
> > columns in the table. If you need it as a sql command, you can check
the
> > system tables.
>
> OK. That works for ./bin/psql, but NOT on the libpq's PQexec.
> What do I have to type here?
>
> Thanx again and lots of greetings from cool Spain
> Steve

Start up psql with the -E on the command line. Then do \d TABLE. This will
show you the actual SQL commands used by psql.

See the psql man page for more details.

HTH,

-- Joe

In response to

  • Re: SHOW at 2001-09-04 06:32:34 from Stephan Bergmann

Responses

  • Re: SHOW at 2001-09-04 07:25:57 from Stephan Bergmann

Browse pgsql-general by date

  From Date Subject
Next Message Giorgio Volpe 2001-09-04 07:00:55 (no subject)
Previous Message John Clark Naldoza y Lopez 2001-09-04 06:47:24 Re: how do functional indices work?