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

Re: Reg: sql commands

From: "sandhya" <sandhyar(at)amiindia(dot)co(dot)in>
To: "Stef" <svb(at)ucs(dot)co(dot)za>
Cc: "postgre" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Reg: sql commands
Date: 2005-09-22 10:34:04
Message-ID: 014101c5bf61$2bb37000$cd00000a@amiindiahjwbgh (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
No...What i need is...
I want to know the equivalent sql queries for \l and \dt commands in order
to list the databases and tables.
I want to do it through programming


----- Original Message ----- 
From: "Stef" <svb(at)ucs(dot)co(dot)za>
To: "sandhya" <sandhyar(at)amiindia(dot)co(dot)in>
Cc: "postgre" <pgsql-admin(at)postgresql(dot)org>; "sandhya"
Sent: Thursday, September 22, 2005 3:38 PM
Subject: Re: [ADMIN] Reg: sql commands

> psql -E
> To see what that does :
> man psql
> sandhya mentioned :
> => Hi...
> =>     Is there any equivalent sql commands/queries for
> => ' \l '   (which list out all the databases) and
> => ' \dt ' ( Which lists all the Tables of the current database)
> => If anybody knows Please tell me.Or If there is any way to get the info
of databases and tables pls..Explain me
> => This is very much required for me to proceed further..
> =>
> => Thank you very much.......
> =>
> => -Sandhya
> ---------------------------(end of broadcast)---------------------------
> TIP 1: if posting/reading through Usenet, please send an appropriate
>        subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
>        message can get through to the mailing list cleanly

In response to


pgsql-admin by date

Next:From: sandhyaDate: 2005-09-22 10:51:03
Subject: Re: Reg: sql commands
Previous:From: Hannes DorbathDate: 2005-09-22 10:18:55
Subject: Re: Reg: sql commands

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