Re: Escaping underscores in LIKE - Mailing list pgsql-general

From Tom Lane
Subject Re: Escaping underscores in LIKE
Date
Msg-id 25676.984065528@sss.pgh.pa.us
Whole thread Raw
In response to Escaping underscores in LIKE  (dev@archonet.com)
List pgsql-general
dev@archonet.com writes:
> Am I doing something stupid trying to escape an underscore in LIKE?

You need more backslashes.  Don't forget the string-literal parser eats
one level of backslashes, before LIKE ever gets to see the pattern.

            regards, tom lane

pgsql-general by date:

Previous
From: "chris markiewicz"
Date:
Subject: RE: length of insert stmt?
Next
From: "Tim Barnard"
Date:
Subject: Re: How to check if a table exists