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

Re^2: How to add columns with new row name using perl from mysql query?

by perlanswers (Initiate)
on Apr 05, 2017 at 06:52 UTC ( #1187070=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    +---------------+--------------+--------------+
    | queue_name    | jobs_pend    | jobs_run     |
    ...
    | calibre       |            0 |            0 |
    | dsp_ncsim_gls |            0 |            2 |
    +---------------+--------------+--------------+
    
  2. or download this
    +---------------+--------------+--------------+
    | queue_name    | jobs_pend    | jobs_run     |
    ...
    | dsp_ncsim_gls |            0 |            2 |
    | others        |         212  |          218 |
    +---------------+--------------+--------------+
    
  3. or download this
    use DBI; 
    use strict; 
    ...
      $col[2] = $table{$key}{'run'};
      printf "| %-25s | %3d | %3d |\n",@col;
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1187070]
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: (4)
As of 2020-10-23 08:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (236 votes). Check out past polls.

    Notices?