Problems with operator '%' within a select

Поиск
Список
Период
Сортировка
От Gabriel Fernandez
Тема Problems with operator '%' within a select
Дата
Msg-id 3885CBCE.E29A42CB@unica.edu
обсуждение исходный текст
Ответы RE: [GENERAL] Problems with operator '%' within a select  ("Sean Carmody" <sean@categoricalsolutions.com.au>)
Список pgsql-general
Hi !

I've just had some problems using the operator '%' within a select.
This is an example:

"select codigo from codis where codigo like '%3'  "

And i've found that all the rows which contains more than one three
won't be selected.
(For example: values 'a34ree3', '34fg3')

It seems as if you put only one character with '%' it will select only
the rows wich contain only one time this character.

Am I wrong ?

Gabi :-)



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

Предыдущее
От: "Nikolay Mijaylov"
Дата:
Сообщение: Re: [SQL] Bug in CEIL?
Следующее
От: Luis Bezerra
Дата:
Сообщение: (no subject)