Re: sql query to get field types - Mailing list pgsql-general

From scott.marlowe
Subject Re: sql query to get field types
Date
Msg-id Pine.LNX.4.33.0403011557110.1074-100000@css120.ihs.com
Whole thread Raw
In response to sql query to get field types  (Alexander Cohen <alex@toomuchspace.com>)
List pgsql-general
On Mon, 1 Mar 2004, Alexander Cohen wrote:

> What sql query can i use to get all relative data to the types of
> fields that a table contains?

select column_name,data_type from information_schema.columns where
table_name='test';

works in 7.4


pgsql-general by date:

Previous
From: Alexander Cohen
Date:
Subject: sql query to get field types
Next
From: Phil Campaigne
Date:
Subject: Setting up Postgresql on Linux