Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-sql by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group