On Wed, Feb 07, 2001 at 09:48:49AM -0800, William R. Mussatto wrote:
> On Wed, 7 Feb 2001, Graham Barr wrote:
>
> > Date: Wed, 7 Feb 2001 17:07:53 +0000
> > From: Graham Barr <[EMAIL PROTECTED]>
> >
> > While everyone is posting thier favorite way to create a placeholder
> > list I thought I would send my favorite.
> >
> > chop(my $qus = "?," x @values);
> > $sth = $dbh->prepare(qq{ ... ($qus) ... });
>
> Actually I think you need single quotes (i.e., appostrophy ') so it
> should read:
> chop (my $qus = '?,' x @values)
> $sth = $dbh->prepare("... ($qus) ...});
Since this is a Perl string (with no interpolated variables or special
characters), either single or double quotes will work just fine.
Ronald
- How do I form an acceptable string for an IN clause? Jim Lynch
- Re: How do I form an acceptable string for an IN ... Maria Quinn
- Re: How do I form an acceptable string for an IN ... Ronald J Kimball
- Re: How do I form an acceptable string for an IN ... Peter J . Holzer
- Re: How do I form an acceptable string for an... Graham Barr
- Re: How do I form an acceptable string fo... William R. Mussatto
- Re: How do I form an acceptable strin... Ronald J Kimball
- Re: How do I form an acceptable ... Jeff Zucker
- Re: How do I form an accepta... Jeff Zucker
- Re: How do I form an acceptable string for an IN ... Tony Foiani
- Re: How do I form an acceptable string for an... Michael A. Chase
- Re: How do I form an acceptable string for an IN ... Jim Lynch
