From: knut.suebert@web.de
To: pgsql-php@postgresql.org
Subject: Re: type of a field
Date: Thu, 2 May 2002 21:55:59 +0200
Message-ID: <20020502195559.GB12934@web.de> (raw)
In-Reply-To: <20020502094839.5372.qmail@web12601.mail.yahoo.com>
References: <20020502094839.5372.qmail@web12601.mail.yahoo.com>
ameen eetemadi schrieb:
> I want to know the type of a field in a table how can I khow it ?
pg_fieldtype()
or something like
SELECT a.attname, format_type(a.atttypid, a.atttypmod)
FROM pg_class c, pg_attribute a
WHERE c.relname = '$tablename'
AND a.attnum > 0 AND a.attrelid = c.oid
ORDER BY a.attnum;
?
Bye,
Knut Sübert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: knut.suebert@web.de
Subject: Re: type of a field
In-Reply-To: <20020502195559.GB12934@web.de>
References: <20020502094839.5372.qmail@web12601.mail.yahoo.com> <20020502195559.GB12934@web.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox