Skip site navigation (1) Skip section navigation (2)

Re: Reg:sql command

From: Sivakumar K <sivakumark(at)aztec(dot)soft(dot)net>
To: olly(at)lfix(dot)co(dot)uk, sandhya <sandhyar(at)amiindia(dot)co(dot)in>
Cc: postgre <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Reg:sql command
Date: 2005-08-24 09:55:03
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
Oops sorry for that post.
Actually we need to do like this.
Psql -E -U siva -d template1
Template1=>\d test;
It gives the queries.

Siva Kumar.K

-----Original Message-----
From: Oliver Elphick [mailto:olly(at)lfix(dot)co(dot)uk] 
Sent: Wednesday, August 24, 2005 2:47 PM
To: sandhya
Cc: postgre; Sivakumar K
Subject: Re: [ADMIN] Reg:sql command

On Wed, 2005-08-24 at 11:50 +0530, sandhya wrote:
> Hi,
> Is there any equivalent command for '\d tablename'.
> Inorder to get the table structure is there any SQL query in postgres?
use psql -E to see the SQL commands that are used to implement \d and
other such commands.

Oliver Elphick                                          olly(at)lfix(dot)co(dot)uk
Isle of Wight                    
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
   Do you want to know God?

pgsql-admin by date

Next:From: Gnanavel SDate: 2005-08-24 11:52:00
Subject: Re: Reg:sql command
Previous:From: Sivakumar KDate: 2005-08-24 09:51:44
Subject: Re: Reg:sql command

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group