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

Re^2: mysql DBI Queries to variables

by finhagen (Sexton)
on Dec 12, 2012 at 23:59 UTC ( #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
Node Status?
node history
Node Type: note [id://1008612]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2014-07-12 06:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (238 votes), past polls