hallikpapa has asked for the wisdom of the Perl Monks concerning the following question:
the params passed to the perl script look like this:column3 column2 column1
So now when I start going thru to check and see which parameters, what's the best way to check the order the columns should be put in the select statement, and to make sure there is no comma between the last column and the FROM TABLE_NAME part. On top of that, I was thinking of some way to use the XML::Generator to dynamically have it create formatted XML. I have it when it's static amount of columns, but sometimes they may only use 3, but sometimes they may call 10 columns, etc... here is some static XML::Generator usage:../cgi-bin/script.pl?column3=1&column2=2&column1=3
Please provide any help or ideas, It's not apparent how I would do this. Thanks!push @output, $xml->cdr( $xml->GC_ID($gc_id), $xml->Date($cdr_day), $xml->CallStatus($call_status), $xml->Direction($direction), $xml->State($state), $xml->PDD($pdd), $xml->NOACPN($noacpn), $xml->I_REL_CAUSE($i_cause) );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Building SQL Query on the fly
by snopal (Pilgrim) on Oct 08, 2007 at 02:20 UTC | |
by hallikpapa (Scribe) on Oct 08, 2007 at 02:30 UTC | |
by perrin (Chancellor) on Oct 08, 2007 at 02:45 UTC | |
by UnstoppableDrew (Sexton) on Oct 08, 2007 at 16:37 UTC | |
by perrin (Chancellor) on Oct 08, 2007 at 17:25 UTC | |
| |
|
Re: Building SQL Query on the fly
by UnstoppableDrew (Sexton) on Oct 08, 2007 at 02:16 UTC | |
|
Re: Building SQL Query on the fly
by graff (Chancellor) on Oct 08, 2007 at 03:33 UTC | |
by hallikpapa (Scribe) on Oct 08, 2007 at 04:23 UTC | |
by graff (Chancellor) on Oct 08, 2007 at 05:08 UTC | |
by grinder (Bishop) on Oct 08, 2007 at 10:16 UTC | |
by hallikpapa (Scribe) on Oct 08, 2007 at 05:22 UTC | |
by graff (Chancellor) on Oct 08, 2007 at 05:35 UTC | |
| |
|
Re: Building SQL Query on the fly
by atemon (Chaplain) on Oct 08, 2007 at 05:08 UTC |