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
Re: > and >= give the same result |
Список | 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 по дате отправления: