Re: Who do I make _ not a wildcard?

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Who do I make _ not a wildcard?
Дата
Msg-id Pine.BSF.4.21.0107281214450.89249-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Who do I make _ not a wildcard?  (Roy Souther <roy@silicontao.com>)
Ответы Re: Who do I make _ not a wildcard?  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-sql
On Sat, 28 Jul 2001, Roy Souther wrote:

> In PG the _ is a wildcard that means any singal char. I need to do a search 
> for the actual _ char and not get back thousands of wrong matches. Is there 
> and escape char that I could use? This needs to work with PG 7.0.3 & 7.1.2.

\\_ should work for a literal escape.
At least on current sources you can do something like:like 'blah!_%' escape '!'
where ! becomes the escape character for the string.




В списке pgsql-sql по дате отправления:

Предыдущее
От: Roy Souther
Дата:
Сообщение: Who do I make _ not a wildcard?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: nullif BUG???