List:MySQL and Perl« Previous MessageNext Message »
From:Jochen Wiedmann Date:April 1 2002 11:11am
Subject:Re: DBI::Mysql returns column name rather than value
View as plain text  
Zitiere David Adam <david@stripped>:


> my $cola = $dbh->quote($colname);
> my $bigmom = $dbh->quote('bigmom');
> my $query = "select $cola from bigmom";

Don't use quote in that case. quote is designed for
constant values and not column names.
Thread
DBI::Mysql returns column name rather than valueDavid Adam1 Apr
  • Re: DBI::Mysql returns column name rather than valueJochen Wiedmann1 Apr