| From: | "Duncan Adams (DNS)" <duncan(dot)adams(at)vcontractor(dot)co(dot)za> |
|---|---|
| To: | "'pgsql-php(at)postgresql(dot)org'" <pgsql-php(at)postgresql(dot)org> |
| Subject: | Re: type of a field |
| Date: | 2002-05-03 07:46:20 |
| Message-ID: | 7DD34E6DF5CD1B4283DDAB96A855DCED2F329F@vodabemail1.vodacom.co.za |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-php |
Would pg_fieldname() and pg_fieldtype() also be an option?
-----Original Message-----
From: Josh Berkus [mailto:josh(at)agliodbs(dot)com]
Sent: Thursday, May 02, 2002 6:49 PM
To: ameen eetemadi; pgsql-php(at)postgresql(dot)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?
| From | Date | Subject | |
|---|---|---|---|
| Next Message | P. Jourdan | 2002-05-03 12:51:18 | Re: boolean error |
| Previous Message | Chris | 2002-05-02 23:16:25 | Re: boolean error |