pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #6499: query to get data with single quote
2+ messages / 2 participants
[nested] [flat]
* BUG #6499: query to get data with single quote
@ 2012-03-01 10:58 sujatha.pelluru@gmail.com
2012-03-01 16:58 ` Re: BUG #6499: query to get data with single quote Kevin Grittner <Kevin.Grittner@wicourts.gov>
0 siblings, 1 reply; 2+ messages in thread
From: sujatha.pelluru@gmail.com @ 2012-03-01 10:58 UTC (permalink / raw)
To: pgsql-bugs
The following bug has been logged on the website:
Bug reference: 6499
Logged by: Sujatha
Email address: sujatha.pelluru@gmail.com
PostgreSQL version: 9.1.3
Operating system: Linux
Description:
Hi
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.
Please suggest me how I can frame query.
Thanks
Sujatha
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: BUG #6499: query to get data with single quote
2012-03-01 10:58 BUG #6499: query to get data with single quote sujatha.pelluru@gmail.com
@ 2012-03-01 16:58 ` Kevin Grittner <Kevin.Grittner@wicourts.gov>
0 siblings, 0 replies; 2+ messages in thread
From: Kevin Grittner @ 2012-03-01 16:58 UTC (permalink / raw)
To: sujatha.pelluru@gmail.com; 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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2012-03-01 16:58 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2012-03-01 10:58 BUG #6499: query to get data with single quote sujatha.pelluru@gmail.com
2012-03-01 16:58 ` Kevin Grittner <Kevin.Grittner@wicourts.gov>
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