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

From: "Max Pyziur" <pyz(at)brama(dot)com>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: DBD::Pg - question on using LIKE operator with bind variable
Date: 2011-07-04 13:29:49
Message-ID: 55377.71.167.232.56.1309786189.squirrel@webmail.brama.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)brama(dot)com

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Miguel Garc&#xED;a 2011-07-05 00:07:00
Previous Message Miguel García 2011-06-23 10:26:12