Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: SQL Placeholder oddity

by JavaFan (Canon)
on Feb 22, 2012 at 21:28 UTC ( [id://955628]=note: print w/replies, xml ) Need Help??


in reply to SQL Placeholder oddity

You cannot use a place holder in the selection list. What may work for you is (untested):
my $sth = $dbh->prepare("SELECT *, DATE_FORMAT(...) as something from +cases where caseid = ?"); $sth->execute($x); while (my $hash = $sth->fetchrow_hashref()) { my @row = @$hash{$col, "status", "something"}; ... }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://955628]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-19 20:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found