Re: LIKE operator and string comparison

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Wei Weng <wweng(at)kencast(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: LIKE operator and string comparison
Date: 2004-09-22 23:09:44
Message-ID: 19606.1095894584@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Wei Weng <wweng(at)kencast(dot)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

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Wei Weng 2004-09-22 23:19:30 Re: LIKE operator and string comparison
Previous Message Wei Weng 2004-09-22 22:54:46 LIKE operator and string comparison