Re: BUG #6499: query to get data with single quote - Mailing list pgsql-bugs

From Kevin Grittner
Subject Re: BUG #6499: query to get data with single quote
Date
Msg-id 4F4F56700200002500045D63@gw.wicourts.gov
Whole thread Raw
In response to BUG #6499: query to get data with single quote  (sujatha.pelluru@gmail.com)
List pgsql-bugs
<sujatha.pelluru@gmail.com> wrote:

> I have column(string datatype) has a data starting with single
> quote as below
>
> 'single resource to avoid all job execution'
>
> Now I want write select query to select records which starts with
> single quote.
>
> I tried with many option however could not get the result.

This is not a bug.  For help with a question like this, please send
an email to one of the other lists, like pgsql-general or
pgsql-novice.

http://www.postgresql.org/community/lists/

To include an apostrophe in a string literal, double it.  Try:

SELECT * FROM tblname WHERE colname LIKE '''%';

-Kevin

pgsql-bugs by date:

Previous
From: sujatha.pelluru@gmail.com
Date:
Subject: BUG #6499: query to get data with single quote
Next
From: thomas.pasch@nuclos.de
Date:
Subject: BUG #6501: postgresql-9.1.3-1-linux.run does not install on 64bit system