From: landsharkdaddy <ldodd@landsharksoftware.com>
To: pgsql-sql@postgresql.org
Subject: Query with Parameters and Wildcards
Date: Sun, 26 Apr 2009 17:21:35 -0700 (PDT)
Message-ID: <23248274.post@talk.nabble.com> (raw)
I have a query that works on SQL Server to return customers that contain the
string entered by the user by accepting parameters and using the LIKE
keyword. I would like to move this to postgreSQL but I'm just not sure how
to get it done. This is the query
SELECT * FROM Customers WHERE FirstName LIKE @custfirst + '%';
This works great on SQL Server but not on postgreSQL. Any help would be
appreciated.
--
View this message in context: http://www.nabble.com/Query-with-Parameters-and-Wildcards-tp23248274p23248274.html
Sent from the PostgreSQL - sql mailing list archive at Nabble.com.
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-sql@postgresql.org
Cc: ldodd@landsharksoftware.com
Subject: Re: Query with Parameters and Wildcards
In-Reply-To: <23248274.post@talk.nabble.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox