Re: to count no of columns in a table

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

Create view/storedproc on pg_class & pg_attribute tables

2006/2/16, AKHILESH GUPTA <akhilesh(dot)davim(at)gmail(dot)com>:
> 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"
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message A. Kretschmer 2006-02-16 09:37:17 Re: to count no of columns in a table
Previous Message AKHILESH GUPTA 2006-02-16 09:13:43 to count no of columns in a table

Browse pgsql-sql by date

  From Date Subject
Next Message A. Kretschmer 2006-02-16 09:37:17 Re: to count no of columns in a table
Previous Message AKHILESH GUPTA 2006-02-16 09:13:43 to count no of columns in a table