Skip site navigation (1) Skip section navigation (2)

Prepared Statement

From: "Rosenblum, Jason" <jrosenblum(at)wcmh(dot)org>
To: <pgsql-novice(at)postgresql(dot)org>
Subject: Prepared Statement
Date: 2009-03-06 13:39:56
Message-ID: 77674A6023BF8C48B7DA05B9451CC31C022701BE@wcmhmail.wcmh.org (view raw or flat)
Thread:
Lists: pgsql-novice
Is it possible to create a prepared statement with a parameter that is
actually the column name of a table?

i.e. prepare foo(?) as select $1, count(*) from boo group by $1

Thanks,
Jason

Responses

pgsql-novice by date

Next:From: Tom LaneDate: 2009-03-06 15:31:08
Subject: Re: Prepared Statement
Previous:From: Semyon ChaichenetsDate: 2009-03-03 21:51:23
Subject: Re: plpgsql: help with RECORD type

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group