pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: sujatha.pelluru@gmail.com
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #6499: query to get data with single quote
Date: Thu, 01 Mar 2012 10:58:56 -0600
Message-ID: <4F4F56700200002500045D63@gw.wicourts.gov> (raw)
In-Reply-To: <E1S33i4-0008TT-5h@wrigleys.postgresql.org>
References: <E1S33i4-0008TT-5h@wrigleys.postgresql.org>

<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



view thread (2+ messages)

Message-ID: <4F4F56700200002500045D63@gw.wicourts.gov>
Permalink:  ../4F4F56700200002500045D63@gw.wicourts.gov/
Also on:    postgresql.org/message-id/4F4F56700200002500045D63@gw.wicourts.gov

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: Kevin.Grittner@wicourts.gov, sujatha.pelluru@gmail.com
  Subject: Re: BUG #6499: query to get data with single quote
  In-Reply-To: <4F4F56700200002500045D63@gw.wicourts.gov>
  References: <E1S33i4-0008TT-5h@wrigleys.postgresql.org> <4F4F56700200002500045D63@gw.wicourts.gov>

* 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