PiyaPerl has asked for the wisdom of the Perl Monks concerning the following question:
I have 3 sql queries each is almost same except that the condition varies each time and on different column eg.
$sql="Select * where coln1='?'"; $sql1="Select * where coln2='?'"; $sql2="Select * where coln3='?'";
how to convert them into prepare and execute method of writing a query a perl
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: PERL DBI MODULE
by Corion (Patriarch) on May 19, 2014 at 11:26 UTC | |
|
Re: PERL DBI MODULE
by marto (Cardinal) on May 19, 2014 at 11:30 UTC | |
|
Re: PERL DBI MODULE
by Tux (Canon) on May 19, 2014 at 13:44 UTC | |
|
Re: PERL DBI MODULE
by chacham (Prior) on May 19, 2014 at 12:23 UTC | |
by erix (Prior) on May 19, 2014 at 13:47 UTC | |
by chacham (Prior) on May 19, 2014 at 15:03 UTC | |
|
Re: PERL DBI MODULE
by locked_user sundialsvc4 (Abbot) on May 19, 2014 at 12:47 UTC |