> and >= give the same result

From: "Jean-Yves F(dot) Barbier" <12ukwn(at)gmail(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: > and >= give the same result
Date: 2011-12-29 13:15:05
Message-ID: 20111229141505.6a0cb9d7@anubis.defcon1
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

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.

JY
--
Help Stamp Out Rape! (Say Yes.)

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Frank Bax 2011-12-29 13:48:37 Re: > and >= give the same result
Previous Message Mariana Damova 2011-12-29 13:07:01 Login role