pragov has asked for the wisdom of the Perl Monks concerning the following question:
Hi All, I use this in CGI
$PTName =~ s/,/','/g; if ($PTName) { $Where = $Where . "AND E.PT_name IN ANY ($PTName) "; }
to select multi names pairs from a list box
isc01cfa,isc02cfa isc03ifa,isc04ifa
But the teradata SQL output it gives
It puts the two single quotes after the pair and before next pair. I need it to be as AND E.PT_name IN ANY ('isc01cfa','isc02cfa','isc03ifa','isc04ifa') How to modify the CGI?..........AND E.PT_name IN ANY ('isc01cfa','isc02cfa'',''isc03ifa','is +c04ifa')
Thanks, Pragov
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: eliminating double quote
by stevieb (Canon) on Nov 25, 2014 at 20:09 UTC | |
by pragov (Novice) on Nov 25, 2014 at 20:19 UTC | |
by poj (Abbot) on Nov 25, 2014 at 22:24 UTC | |
by pragov (Novice) on Nov 26, 2014 at 15:14 UTC | |
by Laurent_R (Canon) on Nov 25, 2014 at 21:21 UTC | |
by AnomalousMonk (Archbishop) on Nov 25, 2014 at 22:10 UTC | |
|
Re: eliminating double quote
by chacham (Prior) on Nov 26, 2014 at 13:32 UTC | |
|
Re: eliminating double quote
by Laurent_R (Canon) on Nov 26, 2014 at 08:38 UTC |