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{$_});
    }