binding column names
From: Guenter Buehrle (Guenter.Buehrle_at_MarconiSelenia.com)
Date: 07/06/04
- Next message: Michael Peppler: "Re: binding column names"
- Previous message: Michael Peppler: "Re: DBD::Sybase and Text problems"
- Next in thread: Michael Peppler: "Re: binding column names"
- Reply: Michael Peppler: "Re: binding column names"
- Maybe reply: Tony Adolph: "Re: binding column names"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: dbi-users@perl.org Date: Tue, 6 Jul 2004 08:33:34 +0200
Hi everybody,
what I want to do is something like
$dbh->prepare('UPDATE table SET ? = ? WHERE id=?');
$dbh->execute($column,$value, $id);
The encountered problem relates to the bind-process of $column.
As I suppose I have to explicitly call the bind_param-method the tell the
driver not to quote the column-name.
Is that right? Which kind of SQL-type do I have to assign to it?
Thank You.
Günter Bührle
- Next message: Michael Peppler: "Re: binding column names"
- Previous message: Michael Peppler: "Re: DBD::Sybase and Text problems"
- Next in thread: Michael Peppler: "Re: binding column names"
- Reply: Michael Peppler: "Re: binding column names"
- Maybe reply: Tony Adolph: "Re: binding column names"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|