how to obtain column info

From: "Ken J(dot) Wright" <ken(at)ori-ind(dot)com>
To: pgsql-interfaces(at)postgreSQL(dot)org
Subject: how to obtain column info
Date: 1998-11-11 00:38:02
Message-ID: 3.0.1.32.19981110163802.007b72f0@ori-ind.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

With libpq, how do you obtain column info (like type) for a table *before*
returning a result set? For instance, knowing the column type before
constructing an insert statement. A date will need quotes, a number won't,
a string will, etc.

Thanks,

Ken

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Bryan White 1998-11-11 01:28:15 Re: [INTERFACES] how to obtain column info
Previous Message Tom Lane 1998-11-10 23:19:30 Re: [INTERFACES] Determine data type of columns