to count no of columns in a table

From: AKHILESH GUPTA <akhilesh(dot)davim(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org, pgsql-sql(at)postgresql(dot)org
Subject: to count no of columns in a table
Date: 2006-02-16 09:13:43
Message-ID: ad39daf90602160113u710dbdafq56359adfe8aee572@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-sql

hi all,
i just want to know one thing that is there any function in PGSQL which
gives me the total number of columns in a table.
OR
just like we are using count(*), it gives us total number or rows in a
table, just like i want to know the total number of columns present in the
table
plz help me it's urgent
THANKS IN ADVANCE............!

--
Thanks & Regards,
Akhilesh
DAV Institute of Management
Faridabad(Haryana)-INDIA

"FAILURES CAN BE FORGIVEN BUT AIMING LOW IS A CRIME"

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Juris 2006-02-16 09:34:50 Re: to count no of columns in a table
Previous Message David Fetter 2006-02-16 08:28:08 Re: Oracle purchases Sleepycat - is this the "other shoe"

Browse pgsql-sql by date

  From Date Subject
Next Message Juris 2006-02-16 09:34:50 Re: to count no of columns in a table
Previous Message Michael Glaesemann 2006-02-16 00:54:10 Re: alter table