Re: How can I get metadate of a table in PHP3?

Поиск
Список
Период
Сортировка
От scott.marlowe
Тема Re: How can I get metadate of a table in PHP3?
Дата
Msg-id Pine.LNX.4.33.0209031102370.7685-100000@css120.ihs.com
обсуждение исходный текст
Ответ на How can I get metadate of a table in PHP3?  (Zhidian Du <zdu@cs.nmsu.edu>)
Список pgsql-php
On Sun, 1 Sep 2002, Zhidian Du wrote:

> Hi:
>
> How can I get metadate of a table in PHP3?

I haven't driven PHP V3 since V4 came out, so I'm not sure if these are
supported, but try these commands:

pg_field_name()
pg_field_type()

You can do a "select * from table limit 1" to get a sample row.  Then use
pg_num_rows() to find out how many rows you have and iterate the name and
type functions over each field to find out.


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

Предыдущее
От: Zhidian Du
Дата:
Сообщение: Re: How can I get metadate of a table in PHP3?
Следующее
От: Ric Mañalac
Дата:
Сообщение: fastest way to retrieve data