DBD::Pg - question on using LIKE operator with bind variable

"Max Pyziur" <[email protected]> Mon, 4 Jul 2011 09:29:49 -0400 (EDT)
Newsgroups gmane.comp.db.postgresql.interfaces
Message-ID <[email protected]>
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
[email protected]

-- 
Sent via pgsql-interfaces mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-interfaces