pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Duncan Adams (DNS) <duncan.adams@vcontractor.co.za>
To: 'pgsql-php@postgresql.org' <pgsql-php@postgresql.org>
Subject: Re: type of a field
Date: Fri, 3 May 2002 09:46:20 +0200
Message-ID: <7DD34E6DF5CD1B4283DDAB96A855DCED2F329F@vodabemail1.vodacom.co.za> (raw)

Would pg_fieldname() and pg_fieldtype() also be an option?

-----Original Message-----
From: Josh Berkus [mailto:josh@agliodbs.com]
Sent: Thursday, May 02, 2002 6:49 PM
To: ameen eetemadi; pgsql-php@postgresql.org
Subject: Re: [PHP] type of a field


Ameen,

> I want to know the type of a field in a table
> how can I khow it ?

Way #1:
1. Log into to your database using the command line utility PSQL.
2. Type "\d <name of table>"

Way #2:
1. Install phpPgAdmin database administration tool.
2. Examine the table using phpPgAdmin.

-Josh

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org



view thread (11+ messages)  latest in thread

Message-ID: <7DD34E6DF5CD1B4283DDAB96A855DCED2F329F@vodabemail1.vodacom.co.za>
Permalink:  ../7DD34E6DF5CD1B4283DDAB96A855DCED2F329F@vodabemail1.vodacom.co.za/
Also on:    postgresql.org/message-id/7DD34E6DF5CD1B4283DDAB96A855DCED2F329F@vodabemail1.vodacom.co.za

 · 

reply

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: duncan.adams@vcontractor.co.za
  Subject: Re: type of a field
  In-Reply-To: <7DD34E6DF5CD1B4283DDAB96A855DCED2F329F@vodabemail1.vodacom.co.za>
  References: <7DD34E6DF5CD1B4283DDAB96A855DCED2F329F@vodabemail1.vodacom.co.za>

* 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