Re: > and >= give the same result

Поиск
Список
Период
Сортировка
От Frank Bax
Тема Re: > and >= give the same result
Дата
Msg-id 4EFC6FB5.8050201@sympatico.ca
обсуждение исходный текст
Ответ на > and >= give the same result  ("Jean-Yves F. Barbier" <12ukwn@gmail.com>)
Ответы Re: > and >= give the same result  ("Jean-Yves F. Barbier" <12ukwn@gmail.com>)
Re: > and >= give the same result  ("Jean-Yves F. Barbier" <12ukwn@gmail.com>)
Список pgsql-novice
On 12/29/11 08:15, Jean-Yves F. Barbier wrote:
> Hi list,
>
> I'm trying to help a friend with his queries and I've something
> strange (well, to me:):
>
> SELECT * FROM tb1 WHERE note>  'y';
>
> returns the *same* result as:
>
> SELECT * FROM tb1 WHERE note>= 'y';
>
> There's something wrong: I though I'd have:
> 1st qry: z%
> 2nd qry: y% and z%
>
> What is wrong with using '>'&| '>=' with strings?
>
> I also know there's a page talking about that in the docs, but I
> can't find it.


The string 'y%' is greater than 'y'! Therefore, both queries will return
y% and z% - where is the problem?

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

Предыдущее
От: "Mariana Damova"
Дата:
Сообщение: Login role
Следующее
От: "Jean-Yves F. Barbier"
Дата:
Сообщение: Re: > and >= give the same result