Re: Dynamic Query problem

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: Dinesh Parikh <dineshp(at)newgen(dot)co(dot)in>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Dynamic Query problem
Date: 2001-09-29 18:22:36
Message-ID: Pine.BSF.4.21.0109291118350.33581-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-novice


On Sat, 29 Sep 2001, Dinesh Parikh wrote:

> Hi,
> Actually I think there is some type of caching in record datatype. Is there
> any way to find datatype of record's column so that i can explicit cast in
> assignment(have u propse alternate of this).

Well, you could explicitly cast in the select query string to the type you
want it to be. Something like:
''Select '' || DBColName || ''::<type> As Field '' || '' From TestTable''
where <type> is the type you want out.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Trond Eivind =?iso-8859-1?q?Glomsr=F8d?= 2001-09-29 20:05:46 Re: Encoding passwords
Previous Message Bruce Momjian 2001-09-29 18:15:15 Re: trigger compile problem

Browse pgsql-novice by date

  From Date Subject
Next Message ChristophSchmidt 2001-09-29 20:13:45 PostreSQL and MS- Excel
Previous Message harrold 2001-09-29 13:52:13 Re: Closing 5432 to the outside