Table Attribute Help

Поиск
Список
Период
Сортировка
Искать

Table Attribute Help

От:
"Brian C. Doyle" <bcdoyle@mindspring.com>
Дата:
Hello all,

I am trying to find a query to retrive the attributes of a table as in \d 
tablename but as a select command.  Is this possible?



Re: Table Attribute Help

От:
Jeff Hoffmann <jeff@propertykey.com>
Дата:
"Brian C. Doyle" wrote:
> 
> Hello all,
> 
> I am trying to find a query to retrive the attributes of a table as in \d
> tablename but as a select command.  Is this possible?

run "psql -E" -- it will echo all of the sql queries that those commands
use.

-- 

Jeff Hoffmann
PropertyKey.com

Re: Table Attribute Help

От:
"omid omoomi" <oomoomi@hotmail.com>
Дата:

Hi,

>From: "Brian C. Doyle" 
>To: pgsql-sql@postgresql.org
>Subject: [SQL] Table Attribute Help
>Date: Mon, 09 Oct 2000 11:21:21 -0400
>
>Hello all,
>
>I am trying to find a query to retrive the attributes of a table as in \d
>tablename but as a select command.  Is this possible?
>
>
yes. try to run psql with -E  and look at the related system tables when 
running \d command like (pg_class, pg_user, ...)
regards
Omid Omoomi
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.


FAQ