Re: to count no of columns in a table

Поиск
Список
Период
Сортировка
От A. Kretschmer
Тема Re: to count no of columns in a table
Дата
Msg-id 20060216093717.GC15433@webserv.wug-glas.de
обсуждение исходный текст
Ответ на to count no of columns in a table  (AKHILESH GUPTA <akhilesh.davim@gmail.com>)
Список pgsql-sql
am  16.02.2006, um 14:43:43 +0530 mailte AKHILESH GUPTA folgendes:
> 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.

select count(column_name) from information_schema.columns where table_name='foo';


HTH, Andreas
-- 
Andreas Kretschmer    (Kontakt: siehe Header)
Heynitz:  035242/47215,      D1: 0160/7141639
GnuPG-ID 0x3FFF606C http://wwwkeys.de.pgp.net===    Schollglas Unternehmensgruppe    === 


В списке pgsql-sql по дате отправления:

Предыдущее
От: Juris
Дата:
Сообщение: Re: to count no of columns in a table
Следующее
От: Ragnar
Дата:
Сообщение: Re: to count no of columns in a table