Howdy all,

I'm writing an application to scour a client's database using perl and dbi. I would like to have just one screen, with multiple input boxes. The problem with this is the number of permutations of sql queries I would have to craft. One table has 5 fields which would require 31 different queries to ensure all possible variations of input data are captured.

My other option is to force the user to begin with a specified input and filter down from there. Am I missing something obvious or are these the only 2 ways to do this? I would really like to do the first option but don't have the time to plug bunches of queries. Do many ifelse statements bog perl down?

Thanks,
Elam


In reply to Database queries w/lots of inputs. by elam

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.