Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: MySQL Table Creation using DBI

by PhiRatE (Monk)
on Sep 06, 2002 at 00:44 UTC ( #195547=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    table stats (
      jobid INT,
    ...
      value VARCHAR(255), # or maybe TEXT or equivalent
      PRIMARY KEY (jobid, try)
    );
    
  2. or download this
    select item, value from stats where jobid=273118 and try=1
    
  3. or download this
    select owner, count(*) as n from stats where try=1 group by owner orde
    +r by n
    
  4. or download this
    foreach (keys %hash) {
        $dbi->do('insert into stats (jobid,try,item,value) (?,?,?,?)',$job
    +id, $try, $_, $hash{$_});
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (4)
As of 2023-09-23 02:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?