Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: DBI selectall_arrayref

by zby (Vicar)
on Sep 02, 2004 at 15:52 UTC ( [id://387949]=note: print w/replies, xml ) Need Help??


in reply to DBI selectall_arrayref

Try print the generated SQL statement. Like:
my $query = "SELECT '" . join("','", @fromFields +) . "' FROM $fromTable"; print $query;
You'll see that you are selecting string constants (the names of the fields). By the way I've never heard about column names with spaces in them - so I can't help write this the right way.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-03-29 15:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found