Re: sql query to get field types

From: "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com>
To: Alexander Cohen <alex(at)toomuchspace(dot)com>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: sql query to get field types
Date: 2004-03-01 22:57:59
Message-ID: Pine.LNX.4.33.0403011557110.1074-100000@css120.ihs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Phil Campaigne 2004-03-01 23:22:09 Setting up Postgresql on Linux
Previous Message Alexander Cohen 2004-03-01 22:54:07 sql query to get field types