Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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?
[shmem]: Eily: also -+-$F[1]
[shmem]: hmm... there should be a glyph for "bembel" in unicode "miscellaneous symbols"
[karlgoethebier]: shmem: ++1000. Also for Schöppsche
[Eily]: shmem Indeed :)
[choroba]: How is Bembel different from Krug?
[hippo]: karlgoethebier, Ich habe kein Deutsch.
[Corion]: choroba: A Bembel is a traditional pottery ware, which is only(!) used for serving Cider (well, Apfelwein)
[shmem]: choroba: it's hessisch
[Corion]: Not every Krug is a Bembel!
[karlgoethebier]: there is just the mug: 🍺

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (17)
As of 2017-05-24 08:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?