Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

DBI:CSV SQL parsing problem

by rlewisuk (Initiate)
on Nov 05, 2007 at 11:16 UTC ( [id://648991]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
    
    $sth->finish();
    $dbh->disconnect();
    
  2. or download this
    my $sth = $dbh->prepare("SELECT AVG(col3) FROM mydata.csv");
    
  3. or download this
    my $sth = $dbh->prepare("SELECT (col2 + col3) FROM mydata.csv");
    
  4. or download this
    my $sth = $dbh->prepare("SELECT AVG(col2 + col3) FROM mydata.csv");
    
  5. or download this
    col1,col2,col3,col4
    
    ...
    
    481,435,225,0.6
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2024-03-28 23:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found