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

Re^2: mysql DBI Queries to variables

by finhagen (Sexton)
on Dec 12, 2012 at 23:59 UTC ( [id://1008612]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
     $sth= $dbh->prepare("select dedate,de,den,op,so,rep,customer,dealn,cc
    +o,ebv,fcost,fmarg,bookad,tir,swmaint,hwmaint,svsums,svcost,svmarg,flo
    +or
                from quote");                          
    
    ...
                     $worksheet->write_number($row+2, 9, $ebv,$alignld);
                    $worksheet->write_number($row+2, 10, $fcost,$alignld);
                    $worksheet->write_formula($row+2, 12, '=1-(K.($row+2)/
    +J.($row+2))'
    
  2. or download this
     my $emc = $dbh->prepare("SELECT a.`function`, b.`fname`, b.`lname`, b
    +.`email`, b.`ophone`, b.`cphone`, b.`geo` FROM `acct` a, `emc` b WHER
    +E a.`cid` ='BBYPRD' AND b.`eid` = a.`eid` order by function;");
    $emc->execute or die $emc->errstr;
    
    ...
        {
         $worksheet1->write_row($row++,$col,$data[6],$data[5], $data[4],$d
    +ata[3], $data[2], $data[1], $data[0]);
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1008612]
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: (6)
As of 2024-03-19 09:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found