pg.ddx.io pgsql-sql@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Wei Weng <wweng@kencast.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-sql@postgresql.org
Subject: Re: LIKE operator and string comparison
Date: Wed, 22 Sep 2004 19:19:30 -0400
Message-ID: <41520882.6020702@kencast.com> (raw)
In-Reply-To: <19606.1095894584@sss.pgh.pa.us>
References: <415202B6.7060903@kencast.com>
<19606.1095894584@sss.pgh.pa.us>
Tom Lane wrote:
> Wei Weng <wweng@kencast.com> writes:
>
>>But if I choose to use string comparison, instead of 4 escape characters, I
>>only need 2.
>
>
>>Why is that?
>
>
> Backslash is an escape character for LIKE.
>
> regards, tom lane
>
>
What about in regular strings? I do need to use backslash to escape the
other backslash in order to get the '\'. Why isn't that the case in LIKE
operation?
Thanks
Wei
view thread (4+ messages) latest in thread
Message-ID: <41520882.6020702@kencast.com> Permalink: ../41520882.6020702@kencast.com/ Also on: postgresql.org/message-id/41520882.6020702@kencast.com ·
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 using the --to and --cc options: reply via email To: pgsql-sql@postgresql.org Cc: wweng@kencast.com, tgl@sss.pgh.pa.us Subject: Re: LIKE operator and string comparison In-Reply-To: <41520882.6020702@kencast.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