Greetings Monks,

I'm hoping you can help advise me on my most recent Perl/MySQL related query. I seek enlightenment...

I need to extract some data from a MySQL DB and process it in Perl. The data relates to client accounts, I will run a series of queries that will extract data relating to these accounts. What I want to be able to do is run a first query to populate an array with the list of clients, then run subsequent queries to create additional columns. The secondary queries will only generate values for some clients, so the array should have zero values in the array elements that haven't been populated.

I have written my SQL and from the many posts that I have read, I need to use DBI or DBIx::Simple to get the data into the array. Beyond that, I am in the dark.

Would appreciate any pointers that the wise monks could give me, I am in need of wisdom.

Thanks in advance Brother George


In reply to Help with MySQL SELECT into multidimensional array by btongeorge

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.