Received: from magellan.herald.com (NS1.herald.com [199.172.188.2]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id eBFLrN614404; Fri, 15 Dec 2000 16:53:23 -0500 (EST) (envelope-from bhoran@herald.com) Received: (from uucp@localhost) by magellan.herald.com (8.8.5/8.8.8) id QAA04956; Fri, 15 Dec 2000 16:50:08 -0500 (EST) Received: from unknown(166.108.250.249) by magellan-new.herald.com via smap (V5.0) id xma004931; Fri, 15 Dec 00 16:49:53 -0500 Received: from herald.com (IDENT:bhoran@cartman [127.0.0.1]) by localhost.localdomain (8.9.3/8.8.7) with ESMTP id QAA03949; Fri, 15 Dec 2000 16:52:54 -0500 Message-ID: <3A3A92B4.5963BF39@herald.com> Date: Fri, 15 Dec 2000 16:52:52 -0500 From: Brian Horan X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.14-5.0 i686) X-Accept-Language: en MIME-Version: 1.0 To: Niral Trivedi CC: pgsql-general@postgresql.org, "'pgsql-admin@postgresql.org'" Subject: Re: simple questions References: <328DC4EC2C9B74428D8DAED1931285BF10D95D@FLAN-EXCH01.corp.insage.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200012/108 X-Sequence-Number: 303 Niral Trivedi wrote: > > All, > > I have very simple two questions.. > > How can we 'describe a table' and 'view all available tables' in postgres > DB?? > > I am looking for something similar to 'desc ' and 'show tables' in > MySQL or > 'desc
' and 'select * from tab' in Oracle.. > > Thanks in advance for your help.. > > Niral easily. psql#> \d table_name for a specific table psql#> \d for all tables and \? for other useful stuff with backslashes. -- ,~, v Brian Horan /(|)\ Systems Analyst/Programmer /( | )\ Miami Herald Publishing Company //( | )\\ bhoran@herald.com cell: (954) 296-7807 -----"-"-----------------------------------------