DBD::Pg - question on using LIKE operator with bind variable - Mailing list pgsql-interfaces

From Max Pyziur
Subject DBD::Pg - question on using LIKE operator with bind variable
Date
Msg-id 55377.71.167.232.56.1309786189.squirrel@webmail.brama.com
Whole thread Raw
Responses Re: DBD::Pg - question on using LIKE operator with bind variable  ("Greg Sabino Mullane" <greg@turnstep.com>)
List pgsql-interfaces
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


pgsql-interfaces by date:

Previous
From: Miguel García
Date:
Subject: ...
Next
From: "Miguel García"
Date:
Subject: ...