agora inbox for pgsql-interfaces@postgresql.org
help / color / mirror / Atom feedFrom: Max Pyziur <pyz@brama.com>
To: pgsql-interfaces@postgresql.org
Subject: DBD::Pg - question on using LIKE operator with bind variable
Date: Mon, 4 Jul 2011 09:29:49 -0400 (EDT)
Message-ID: <55377.71.167.232.56.1309786189.squirrel@webmail.brama.com> (raw)
Greetings,
I would like to use a bind variable with a LIKE operator.
An example of the query that I'm trying to use is the following:
SELECT ? , aa.f1, aa.f2, aa.f3, aa.f4 FROM orgs aa WHERE aa.f1 LIKE '%?%'
How do I get the conditional part of the query (WHERE aa.f1 LIKE '%?%') to
accept a bind variable?
Much thanks for your help.
Max Pyziur
pyz@brama.com
view thread (2+ messages) latest in thread
Message-ID: <55377.71.167.232.56.1309786189.squirrel@webmail.brama.com>
Permalink: ../55377.71.167.232.56.1309786189.squirrel@webmail.brama.com/
Also on: postgresql.org/message-id/55377.71.167.232.56.1309786189.squirrel@webmail.brama.com
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: pyz@brama.com
Subject: Re: DBD::Pg - question on using LIKE operator with bind variable
In-Reply-To: <55377.71.167.232.56.1309786189.squirrel@webmail.brama.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox