Antony Paul wrote:
> Hi all,
> Is it possible to pass column name to a PreparedStatement as a
No, you can only use parameter placeholders in places which the backend
grammar allows parameters (namely, in expressions). Column names aren't
one of those places.
> Or should I use Statement.
You can use either Statement or PreparedStatement so long as you insert
the column name into the SQL query string yourself before giving it to
In response to
pgsql-jdbc by date
|Next:||From: Antony Paul||Date: 2005-02-15 12:04:56|
|Subject: Re: Pass column name in preparedstatement|
|Previous:||From: Antony Paul||Date: 2005-02-15 11:20:22|
|Subject: Pass column name in preparedstatement|